summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Give kldunload a -f(orce) argument.phk2004-07-1317-33/+91
| | | | | | | | | | | | | | | | | Add a MOD_QUIESCE event for modules. This should return error (EBUSY) of the module is in use. MOD_UNLOAD should now only fail if it is impossible (as opposed to inconvenient) to unload the module. Valid reasons are memory references into the module which cannot be tracked down and eliminated. When kldunloading, we abandon if MOD_UNLOAD fails, and if -force is not given, MOD_QUIESCE failing will also prevent the unload. For backwards compatibility, we treat EOPNOTSUPP from MOD_QUIESCE as success. Document that modules should return EOPNOTSUPP for unknown events.
* Add kldunloadf() system call. Stay tuned for follwing commit messages.phk2004-07-132-2/+4
|
* Clean up our pnpinfo and location strings.njl2004-07-131-7/+5
|
* Call device_identify routines after doing the namespace walk. This isnjl2004-07-131-8/+6
| | | | | | | | | needed so that sysresource objects are created first to reserve all regions, then other devices can allocate from them. Otherwise, acpi_timer (the only ACPI device with an identify routine), would allocate its resources from the nexus, causing the later sysresource reserve to fail. Debugging by: Taku YAMAMOTO, Andrea Campi
* Send the fla driver in the Atticphk2004-07-137-1614/+0
|
* Desupport M-Systems DiskOnChip driver "fla"phk2004-07-132-10/+0
|
* fix compilation.phk2004-07-131-1/+1
|
* oldcard's card device no longer requires a countimp2004-07-132-2/+2
|
* Rev 1.24 of sys/ptrace.h adds ptrace_clear_single_step() prototypekensmith2004-07-131-1/+0
| | | | | | | definition so this one causes "redundant declaration" error and breaks Alpha kernel build. Reviewed by: gallatin@ and test build on beast
* Remove erroneous semicolons.stefanf2004-07-135-6/+6
|
* Merged from recent fdc driver changes.nyan2004-07-136-194/+294
| | | | Make a separate function to check FDD type.
* Replace "uid != 0" with "suser(td->td_ucred) != 0" when checking if we'vecperciva2004-07-131-1/+2
| | | | | hit the maximum number of processes. The last ten processes are reserved for the *non-jailed* superuser.
* MFi386: revision 1.213.nyan2004-07-133-48/+60
| | | | Fix miss merging in previous change.
* Remove unused macro.pjd2004-07-131-9/+0
|
* Decrease log level of one debug message, so there is no hole (level 2pjd2004-07-131-1/+1
| | | | wasn't used at all).
* Minor sysctl description fixes.pjd2004-07-131-2/+2
| | | | Submitted by: simon
* Another LINT compilation fixphk2004-07-131-1/+0
|
* Make LINT compilephk2004-07-132-2/+0
|
* Re-enable debugger port.simokawa2004-07-131-3/+124
|
* Replace DDB with KDB.simokawa2004-07-131-1/+1
|
* Add code to support debugging threaded process.davidxu2004-07-131-75/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Add tm_lwpid into kse_thr_mailbox to indicate which kernel thread current user thread is running on. Add tm_dflags into kse_thr_mailbox, the flags is written by debugger, it tells UTS and kernel what should be done when the process is being debugged, current, there two flags TMDF_SSTEP and TMDF_DONOTRUNUSER. TMDF_SSTEP is used to tell kernel to turn on single stepping, or turn off if it is not set. TMDF_DONOTRUNUSER is used to tell kernel to schedule upcall whenever possible, to UTS, it means do not run the user thread until debugger clears it, this behaviour is necessary because gdb wants to resume only one thread when the thread's pc is at a breakpoint, and thread needs to go forward, in order to avoid other threads sneak pass the breakpoints, it needs to remove breakpoint, only wants one thread to go. Also, add km_lwp to kse_mailbox, the lwp id is copied to kse_thr_mailbox at context switch time when process is not being debugged, so when process is attached, debugger can map kernel thread to user thread. 2. Add p_xthread to proc strcuture and td_xsig to thread structure. p_xthread is used by a thread when it wants to report event to debugger, every thread can set the pointer, especially, when it is used in ptracestop, it is the last thread reporting event will win the race. Every thread has a td_xsig to exchange signal with debugger, thread uses TDF_XSIG flag to indicate it is reporting signal to debugger, if the flag is not cleared, thread will keep retrying until it is cleared by debugger, p_xthread may be used by debugger to indicate CURRENT thread. The p_xstat is still in proc structure to keep wait() to work, in future, we may just use td_xsig. 3. Add TDF_DBSUSPEND flag, the flag is used by debugger to suspend a thread. When process stops, debugger can set the flag for thread, thread will check the flag in thread_suspend_check, enters a loop, unless it is cleared by debugger, process is detached or process is existing. The flag is also checked in ptracestop, so debugger can temporarily suspend a thread even if the thread wants to exchange signal. 4. Current, in ptrace, we always resume all threads, but if a thread has already a TDF_DBSUSPEND flag set by debugger, it won't run. Encouraged by: marcel, julian, deischen
* Implement following commands: PT_CLEARSTEP, PT_SETSTEP, PT_SUSPENDdavidxu2004-07-132-12/+117
| | | | PT_RESUME, PT_GETNUMLWPS, PT_GETLWPLIST.
* Add ptrace_clear_single_step(), alpha already has it for years, the functiondavidxu2004-07-138-0/+59
| | | | will be used by ptrace to clear a thread's single step state.
* Add code to support debugging threaded process.davidxu2004-07-136-70/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Add tm_lwpid into kse_thr_mailbox to indicate which kernel thread current user thread is running on. Add tm_dflags into kse_thr_mailbox, the flags is written by debugger, it tells UTS and kernel what should be done when the process is being debugged, current, there two flags TMDF_SSTEP and TMDF_DONOTRUNUSER. TMDF_SSTEP is used to tell kernel to turn on single stepping, or turn off if it is not set. TMDF_DONOTRUNUSER is used to tell kernel to schedule upcall whenever possible, to UTS, it means do not run the user thread until debugger clears it, this behaviour is necessary because gdb wants to resume only one thread when the thread's pc is at a breakpoint, and thread needs to go forward, in order to avoid other threads sneak pass the breakpoints, it needs to remove breakpoint, only wants one thread to go. Also, add km_lwp to kse_mailbox, the lwp id is copied to kse_thr_mailbox at context switch time when process is not being debugged, so when process is attached, debugger can map kernel thread to user thread. 2. Add p_xthread to proc strcuture and td_xsig to thread structure. p_xthread is used by a thread when it wants to report event to debugger, every thread can set the pointer, especially, when it is used in ptracestop, it is the last thread reporting event will win the race. Every thread has a td_xsig to exchange signal with debugger, thread uses TDF_XSIG flag to indicate it is reporting signal to debugger, if the flag is not cleared, thread will keep retrying until it is cleared by debugger, p_xthread may be used by debugger to indicate CURRENT thread. The p_xstat is still in proc structure to keep wait() to work, in future, we may just use td_xsig. 3. Add TDF_DBSUSPEND flag, the flag is used by debugger to suspend a thread. When process stops, debugger can set the flag for thread, thread will check the flag in thread_suspend_check, enters a loop, unless it is cleared by debugger, process is detached or process is existing. The flag is also checked in ptracestop, so debugger can temporarily suspend a thread even if the thread wants to exchange signal. 4. Current, in ptrace, we always resume all threads, but if a thread has already a TDF_DBSUSPEND flag set by debugger, it won't run. Encouraged by: marcel, julian, deischen
* Do not call sorecieve() in the context of a socket callback as it causesalfred2004-07-131-3/+5
| | | | | lock order reversals so->inpcb since we're called with the socket lock held.
* Simplify pmap_protect().alc2004-07-131-6/+3
|
* Turn off SO_REUSEADDR and SO_REUSEPORT, they were causing EADDRINUSEalfred2004-07-131-5/+1
| | | | | | to be returned from the protocol stack. Pointy hat to me for not groking what those options _really_ mean.
* Push down the acquisition and release of the page queues lock intoalc2004-07-137-15/+10
| | | | | | | | pmap_remove_pages(). (The implementation of pmap_remove_pages() is optional. If pmap_remove_pages() is unimplemented, the acquisition and release of the page queues lock is unnecessary.) Remove spl calls from the alpha, arm, and ia64 pmap_remove_pages().
* Set fdc_dev in attachimp2004-07-131-0/+1
|
* Don't depend on implicit include of machine/bus.h in sys/rman.h, but insteadimp2004-07-133-0/+5
| | | | explicitly include it.
* pccard no longer requires a count because the floppy driver thatimp2004-07-131-1/+1
| | | | nominally had a non-working reference to card.h has been removed.
* Remove even more references to generating usbdevs_data.h, et al.imp2004-07-121-9/+9
| | | | Noticed by: njl
* Remove the instructions for regenerating usbdevs.h: that's now noimp2004-07-121-13/+0
| | | | longer necessary.
* Rename low-level code ddb -> db. Use KDB instead of DDB.grehan2004-07-122-72/+72
| | | | | Fix bug in setup of stack frame where 8 bytes wasn't being saved for the callee's frame pointer and saved LR.
* Bring into KDB new order.grehan2004-07-122-18/+12
|
* - DDB -> KDB, with kdb routinesgrehan2004-07-122-46/+108
| | | | | | | - ddb -> db for low-level trapcode - implement makectx. I think it only matters that the stack is setup correctly. - bring over ddb_trap_glue and rename to db_trap_glue
* No need for ddb option. Never a need for ipkdb option.grehan2004-07-122-4/+0
|
* Catch up with gratuitous ddb -> db renaminggrehan2004-07-121-1/+1
|
* Bring into line with KDB. Bring in NetBSD updates for backtrace routine,grehan2004-07-121-149/+155
| | | | although it really needs a decent re-work.
* Remove unused NetBSD code. Bring mem r/w routines into here in linegrehan2004-07-121-341/+61
| | | | | | with sparc64, although keep the size deref checks: they are useful when accessing PCI space where some devices may not implement byte access.
* Gratuitous namechange to avoid low-level association with ddb.grehan2004-07-121-1/+1
|
* Add prototype for KDB's makectx routinegrehan2004-07-121-0/+2
|
* Remove old NetBSD-derived unused code and stuff that is now obsoletegrehan2004-07-121-33/+12
| | | | due to KDB.
* DDB -> KDB, and rename low-level trap handler to avoid name conflict.grehan2004-07-121-4/+4
|
* kdb.h for PowerPC. Stubs for now.grehan2004-07-121-0/+49
|
* Add new KDB option, and also drop in long-held fxp/dc eth drivers.grehan2004-07-121-1/+4
|
* db_memrw.c has been subsumed into db_interface.c ala sparc64grehan2004-07-121-1/+0
|
* Remove stray line with just a tabimp2004-07-121-2/+2
| | | | | | Remove usbdevs_data.h, it isn't used by the module Noticed by: Pawel Worach
* Rename Alfred's kern_setsockopt to so_setsockopt, as this seems adwmalone2004-07-123-5/+5
| | | | | | | | a better name. I have a kern_[sg]etsockopt which I plan to commit shortly, but the arguments to these function will be quite different from so_setsockopt. Approved by: alfred
* Update to kdb.cognet2004-07-123-143/+46
|
OpenPOWER on IntegriCloud