Scott Long
4c10e55d26
Remove an extra #include
2004-11-21 06:28:35 +00:00
Scott Long
938eaf8e6b
MFC amd64:
...
Consolidate all of the bounce tests into the BUS_DMA_COULD_BOUNCE flag.
Allocate the bounce zone at either tag creation or map creation to help
avoid null-pointer derefs later on. Track total pages per zone so that
each zone can get a minimum allocation at tag creation time instead of
being defeated by mis-behaving tags that suck up the max amount.
2004-11-21 04:43:28 +00:00
Scott Long
25590d09b9
Consolidate all of the bounce tests into the BUS_DMA_COULD_BOUNCE flag.
...
Allocate the bounce zone at either tag creation or map creation to help
avoid null-pointer derefs later on. Track total pages per zone so that
each zone can get a minimum allocation at tag creation time instead of
being defeated by mis-behaving tags that suck up the max amount.
2004-11-21 04:15:26 +00:00
Scott Long
1248408df3
Don't force busdma to pre-allocate bounce pages for static allocations.
2004-11-21 04:03:29 +00:00
Scott Long
8a40c10eb9
Don't force busdma to pre-allocate bounce pages for the parent tag.
2004-11-21 04:02:36 +00:00
Max Laier
ed0cf68945
Commit ALTQ-patch for ed(4).
...
Requested and tested by: pav
MFC after: 1 week
2004-11-21 02:42:09 +00:00
Marcel Moolenaar
57a8f01dc1
o Support for the i8251 wasn't there. Remove the files.
...
o Remove the headers with IC register definitions. The headers are
now taken from sys/dev/ic
2004-11-21 01:51:37 +00:00
Marcel Moolenaar
0204ed7a3f
Include the header with the register definitions from sys/dev/ic. They
...
are shared now.
2004-11-21 01:43:27 +00:00
Marcel Moolenaar
43f0d5705e
This file was repocopied from sys/dev/uart/uart_dev_z8530.h.
2004-11-21 01:34:15 +00:00
Marcel Moolenaar
caf45b058e
This file was repocopied from sys/dev/uart/uart_dev_sab82532.h.
2004-11-21 01:33:39 +00:00
Marcel Moolenaar
694f13aaff
Stop building uart_dev_i8251.c. It was copied from uart_dev_ns8250.c
...
without ever being changed to actually work with an i8251. Nobody is
working on this either at the moment, so it's not about to change
soon.
When the code necessary to support the i8251 is committed, this can
be reverted again.
2004-11-20 23:38:48 +00:00
Marcel Moolenaar
76563bea53
Include the common <dev/ic/ns16550.h> instead of the private
...
<dev/uart_dev_ns8250.h>. The latter can be removed now.
2004-11-20 23:22:04 +00:00
Marcel Moolenaar
4f5d62fbc6
o Remove the com_thr, com_rhr, com_isr and com_lctl defines. They are
...
not used and aliases for other defines.
o Add REG_DATA as an alias for com_data. Likewise for other register
defines.
o Add LCR_SBREAK and make CFCR_SBREAK an alias for it. Likewise for
the other LCR register bits that are known with the CFCR prefix.
o Add MCR_IE and make MCR_IENABLE an alias for it.
o Add LSR_TEMT and make LSR_TSRE an alias for it.
o Add LSR_THRE and make LSR_TXRDY as alias for it.
o Add FCR_ENABLE and make FIFO_ENABLE as alias for it. Likewise for
the other FCR register bits that are known with the FIFO prefix.
o Add EFR_CTS and make EFR_AUTOCTS an alias for it.
o Add EFR_RTS and make EFR_AUTORTS an alias for it.
This is a first step in cleaning up the definitions in this file.
2004-11-20 23:19:42 +00:00
Marcel Moolenaar
165af6d313
o Remove opt_ddb.h from SRCS.
...
o Add opt_gdb.h and opt_kdb.h to SRCS.
2004-11-20 23:04:32 +00:00
David Schultz
6db36923ad
Remove local definitions of RANGEOF() and use __rangeof() instead.
...
Also remove a few bogus casts.
2004-11-20 23:00:59 +00:00
Olivier Houchard
7b90b2998e
Remove useless code.
2004-11-20 16:52:30 +00:00
Olivier Houchard
3488a2f7d9
Implement enough to be able to enter and leave DDB.
2004-11-20 16:52:10 +00:00
Olivier Houchard
579d53f4cf
Get the kernel stack right now that the u-area is gone.
2004-11-20 16:51:32 +00:00
Max Khon
9595dba40d
Use M_ZERO to not panic in mtx_init when INVARIANTS enabled.
...
Submitted by: simokawa
MFC after: 1 week
2004-11-20 13:10:04 +00:00
Marcel Moolenaar
268597acfe
Sort MFILES.
2004-11-20 06:09:11 +00:00
David Schultz
d567bd70be
Remove the declaration of uarea_pages.
...
Reviewed by: arch@
2004-11-20 02:33:05 +00:00
David Schultz
920cb0c946
Remove the p_uarea and p_upages_obj fields from struct proc.
...
Prototype new routines to allocate, copy, and free pstats.
Reviewed by: arch@
2004-11-20 02:32:50 +00:00
David Schultz
626ff2081f
Remove the uarea column from the DDB 'ps' display, and from grog's gdb
...
scripts.
Reviewed by: arch@
2004-11-20 02:32:42 +00:00
David Schultz
b99d6e6f6f
Update the comment about what NO_SWAPPING does.
...
Reviewed by: arch@
2004-11-20 02:32:15 +00:00
David Schultz
0ef5c36ff1
Maintain the broken state of backwards compatibilty for a.out (and
...
PECOFF!) core dumps. None of the old versions of gdb I tried were
able to read a.out core dumps before or after this change.
Reviewed by: arch@
2004-11-20 02:32:04 +00:00
David Schultz
75b5bcbad6
We don't do U area swapping anymore, so update some comments. Also,
...
prototype the new routine that creates a mock U area for a.out core
dumps.
Reviewed by: arch@
2004-11-20 02:31:46 +00:00
David Schultz
d305a6da98
Remove UAREA_PAGES and USPACE definitions. The definitions of
...
USPACE_SVC_STACK_TOP, USPACE_SVC_STACK_BOTTOM, USPACE_UNDEF_STACK_TOP,
and USPACE_UNDEF_STACK_BOTTOM look wrong to me, so I'm leaving them
alone.
Reviewed by: arch@
2004-11-20 02:31:37 +00:00
David Schultz
837f4b104e
Remove some references to U area here while trying not to break
...
anything. Someone with ARM hardware could do a lot more to untangle
this code.
Reviewed by: arch@
2004-11-20 02:31:23 +00:00
David Schultz
6484fde022
Remove references to U area and garbage collect includes.
...
Reviewed by: arch@
2004-11-20 02:30:59 +00:00
David Schultz
ab44ebf537
Remove UAREA_PAGES.
...
Reviewed by: arch@
2004-11-20 02:29:50 +00:00
David Schultz
449835405d
U areas are going away, so don't allocate them. It's worrisome that
...
mp_machdep.c was using UAREA_PAGES to allocate something that isn't a
U area, and that there seems to be an implicit assumption that the PCB
is just past the end of the kernel stack.
Reviewed by: arch@
2004-11-20 02:29:36 +00:00
David Schultz
11111b709f
U areas are going away, so don't allocate one for process 0.
...
Reviewed by: arch@
2004-11-20 02:29:25 +00:00
David Schultz
9799b417d5
Disable U area swapping and remove the routines that create, destroy,
...
copy, and swap U areas.
Reviewed by: arch@
2004-11-20 02:29:00 +00:00
David Schultz
8b059651ba
Malloc p_stats instead of putting it in the U area. We should consider
...
simply embedding it in struct proc.
Reviewed by: arch@
2004-11-20 02:28:48 +00:00
David Schultz
ff3fd2e764
user.h is included only to get pcb.h, so use the latter directly instead.
2004-11-20 02:28:14 +00:00
Olivier Houchard
a8a2a16a08
Increase cnt.v_syscall and cnt.v_trap when needed.
2004-11-20 00:55:57 +00:00
Gleb Smirnoff
654ec77877
Remove unused macro.
...
Approved by: julian (mentor)
2004-11-19 22:35:53 +00:00
Gleb Smirnoff
92947dc698
Cancel pending timeout before scheduling a new one. This fixes
...
item leak, I've introduced with previous change.
Approved by: julian (mentor)
2004-11-19 20:23:46 +00:00
Maksim Yevmenkin
bb50f99e30
Correct typo. Return ENXIO instead of EIO.
2004-11-19 18:54:54 +00:00
Scott Long
5932596e0d
Revert part of rev 1.57. The tag boundary is honored by splitting the
...
segment, not by bouncing.
2004-11-19 17:56:22 +00:00
Scott Long
e835255791
Revert part of rev 1.56. Tag boundaries are handled by splitting segments,
...
not through bouncing.
2004-11-19 17:51:29 +00:00
Mark Santcroos
9b7fe7e497
Place function comment above the right function.
2004-11-19 00:58:30 +00:00
Mark Santcroos
463b173e50
Rebuild from compat/freebsd32/syscalls.master:1.43
...
Reviewed by: imp, phk, njl, peter
Approved by: njl
2004-11-18 23:56:09 +00:00
Mark Santcroos
f16ab45fbc
32-bit FreeBSD ABI compatibility stubs from syscalls.master:1.179
...
Reviewed by: imp, phk, njl, peter
Approved by: njl
2004-11-18 23:54:26 +00:00
Mark Santcroos
2524cfb753
Rebuild from syscalls.master:1.179
...
Reviewed by: imp, phk, njl, peter
Approved by: njl
2004-11-18 23:52:40 +00:00
Mark Santcroos
6b270b4825
Add ntp_gettime(2) system call.
...
Reviewed by: imp, phk, njl, peter
Approved by: njl
2004-11-18 23:46:14 +00:00
Mark Santcroos
932cfd418c
Add system call implementation of ntp_gettime(2).
...
Moved most of the work to ntp_gettime1(), which is now called by
ntp_gettime() and ntp_sysctl().
Reviewed by: imp, phk, njl, peter
Approved by: njl
2004-11-18 23:44:49 +00:00
Justin T. Gibbs
803bbd69c4
Add some useful target mode diagnostics for incoming commands
...
under the AHC_SHOW_TQIN debug flag.
2004-11-18 20:33:43 +00:00
Justin T. Gibbs
ad32f91b6b
Revert to basing all timeout/timer values in ms rather than us. The switch
...
to us was to help out the Linux port, but really just invited overflow.
In fact, the request sense timer was overflowing prior to this change making
it much shorter than intended.
aic_osm_lib.h:
Be more careful about overflow in all timer/timeout primitives.
2004-11-18 20:22:31 +00:00
Poul-Henning Kamp
75ad04b4f6
Add dropped implementation of ioctl for fifos.
2004-11-18 17:18:11 +00:00