Olivier Houchard
b1ff74ebb3
Cleanup.
2004-11-21 19:41:27 +00:00
Olivier Houchard
7fc1bf0371
Set the frame pointer to 0 in fork_trampoline().
2004-11-21 19:33:47 +00:00
Olivier Houchard
9ebe15a1d7
Implement breakpoints and single stepping on arm.
...
Obtained from: NetBSD
2004-11-21 18:11:39 +00:00
Olivier Houchard
75f88c7ca4
Do not attempt to skip a breakpoint that is a result of a software single step,
...
or bad things happen.
2004-11-21 18:11:02 +00:00
Warner Losh
4b87c653f9
Properly wither the geom container on detach. This will allow one to
...
then later reload fdc and not have duplicate fd devices in dev.
# Maybe this should be moved to a convenience function.
Reviewed by: phk
2004-11-21 16:25:21 +00:00
Yoshihiro Takahashi
ea54c3694c
uart_i8251_ops is gone.
2004-11-21 15:18:35 +00:00
Robert Watson
98734750b4
s/send/sent/ in comment describing TCPS_SYN_RECEIVED.
2004-11-21 14:38:04 +00:00
David Schultz
c17ff94938
Neither of the arguments to closef() can be NULL anymore, so don't
...
check for that.
2004-11-21 11:06:24 +00:00
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