summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release the vnode cache mutex when calling vgone(), since vgone() maydes2004-08-151-26/+39
| | | | | sleep. This makes pfs_exit() even less efficient than before, but on the bright side, the vnode cache mutex no longer needs to be recursive.
* Add rtld-elf to the include path for the rtld to pthread TLS interface.dfr2004-08-151-0/+1
|
* Correct some uses of the wrong members of the *min()/*max()-familiy, e.g.marius2004-08-153-5/+5
| | | | | | min() on unsigned long. None of these are believed to have been fatal though. Reviewed by: tmm
* Bump document date for last commit.simon2004-08-151-1/+1
|
* - Make pmap_emulate_reference() MP and preemption safe. Previously, italc2004-08-151-30/+20
| | | | | | | | | | contained "sanity" checks that could be violated if another CPU modified the pmap between the emulation trap and locking the pmap in pmap_emulate_reference(). As a result, the pte could be inconsistent with the access that caused the emulation trap. In such cases, pmap_emulate_reference() now flushes the current CPU's TLB entry and returns. - Make pmap_changebit() an inline function, reducing object code size.
* - Add a HARDWARE section which lists supported devices.simon2004-08-151-13/+23
| | | | | | | | - Add the manufacturer name to each item in the device list. - Make the note about supporting "IBM e335" into a general list and change the entry to use the full product name ("IBM eServer xSeries 335"). - Add Dell PowerEdge 1750 to the list of systems with mpt onboard.
* Preemptive anti-footshooting: cause a #error if MP_WATCHDOG is compiledrwatson2004-08-152-0/+10
| | | | with SCHED_ULE.
* Shorten the description of NO_OPENSSL, which was split into two lines by amarius2004-08-151-2/+1
| | | | patch of mine in revision 1.216, a bit so it fits in a single line again.
* Save on one variable in ofwo_action(). Leftover from an older version ofmarius2004-08-151-3/+1
| | | | this function which needed the handle of the /options node more than once.
* - Correct the description of the "local-mac-address?" variable. Not all NICsmarius2004-08-151-4/+43
| | | | | | | | | use it, only those with FCode. Add references to dc(4), gem(4) and hme(4) for obtaining further information about such devices presently supported by FreeBSD. - Correct the HISTORY section. There was an eeprom(8) utility in 4.4BSD and early versions of FreeBSD 2.x. - Add an AUTHORS section.
* Spell MP_WATCHDIG right: I fixed the build without MP_WATCHDOG afterrwatson2004-08-151-1/+1
| | | | testing MP_WATCHDOG, and used an incorrect ifdef.
* Change the HARDWARE section to have the same style as in the othersimon2004-08-151-2/+5
| | | | FreeBSD section 4 manual pages.
* Add a useful snippet on limitations of inductive reasoning by Bertrandrwatson2004-08-151-0/+6
| | | | Russell.
* Yet another tweak to the shutdown messages in boot():truckman2004-08-151-15/+12
| | | | | | | | | | | | | | | | | | | | | | Don't count busy buffers before the initial call to sync() and don't skip the initial sync() if no busy buffers were called. Always call sync() at least once if syncing is requested. This defers the "Syncing disks, buffers remaining..." message until after the initial sync() call and the first count of busy buffers. This backs out changes in kern_shutdown 1.162. Print a different message when there are no busy buffers after the initial sync(), which is now the expected situation. Print an additional message when syncing has completed successfully in the unusual situation where the work of syncing was done by boot(). Uppercase one message to make it consistent with all of the other kernel shutdown messages. Discussed with: bde (in a much earlier form, prior to 1.162) Reviewed by: njl (in an earlier form)
* Add a "fillchar" command line argument to dd(1) that permits the userrwatson2004-08-155-2/+32
| | | | | | | to specify an alternative padding character when using a conversion mode, or when using noerror with sync and an input error occurs. This facilities reading old and error-prone media by allowing the user to more effectively mark error blocks in the output stream.
* - Add a HARDWARE section which lists supported devices.simon2004-08-151-3/+7
|
* - Add a HARDWARE section which lists supported devices.simon2004-08-151-91/+94
| | | | | | | - Remove reference to the NOTES section in the entry for Sun DMFE, since ot doesn't work well with the auto generated Hardware Notes. [1] OK'ed by: marius [1]
* Add an "options MP_WATCHDOG" to i386. This option allows one of therwatson2004-08-157-0/+529
| | | | | | | | | | | | | | | | | | | | | | | logical CPUs on a system to be used as a dedicated watchdog to cause a drop to the debugger and/or generate an NMI to the boot processor if the kernel ceases to respond. A sysctl enables the watchdog running out of the processor's idle thread; a callout is launched to reset a timer in the watchdog. If the callout fails to reset the timer for ten seconds, the watchdog will fire. The sysctl allows you to select which CPU will run the watchdog. A sample "debug.leak_schedlock" is included, which causes a sysctl to spin holding sched_lock in order to trigger the watchdog. On my Xeons, the watchdog is able to detect this failure mode and break into the debugger, which cannot otherwise be done without an NMI button. This option does not currently work with sched_ule due to ule's push notion of scheduling, similar to machdep.hlt_logical_cpus failing to work with that scheduler. On face value, this might seem somewhat inefficient, but there are a lot of dual-processor Xeons with HTT around, so using one as a watchdog for testing is not as inefficient as one might fear.
* - Make the naming of AMCC's 3ware cards consistent with the currentsimon2004-08-152-18/+51
| | | | | | | naming from AMCC. - Update the list of devices supported by the drivers. All of the above is based on information from AMCC via vkashyap.
* o Document net.inet.ip.random_id sysctl.maxim2004-08-151-1/+12
| | | | Reviewed by: dwmalone, ru
* Add TLS support for i386 and amd64.dfr2004-08-1520-66/+84
|
* Add TLS support for libthr on i386.dfr2004-08-152-74/+29
|
* Add support for TLS in statically linked programs.dfr2004-08-1521-8/+490
|
* move the declaration of struct kqlist into the non-KERNEL visable sectionjmg2004-08-151-3/+2
| | | | to fix userland.
* Avoid code duplication by introducing g_mirror_write_metadata() function,pjd2004-08-151-55/+29
| | | | | which is used now by g_mirror_clear_metadata() function and g_mirror_update_metadata() function.
* Inform hier(7) about /usr/include/geom/mirror/ directory.pjd2004-08-151-0/+2
|
* A media type of floppy is detected automatically.nyan2004-08-151-31/+0
| | | | Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
* Replace linux_getitimer() and linux_setitimer() with implementationstjr2004-08-151-24/+77
| | | | | based on those in freebsd32_misc.c, removing the assumption that Linux uses the same layout for struct itimerval as we use natively.
* Disable surplus detection of breakpoint event in signal stack, the checkdavidxu2004-08-151-0/+4
| | | | | | | causes a normal breakpoint event in new thread to be ignored unexpectly, result is process SIGSEGV. Test on: AMD64, i386
* Avoid assuming that l_timeval is the same as the native struct timevaltjr2004-08-151-2/+7
| | | | in linux_select().
* Use sv_psstrings from the current process's sysentvec structure insteadtjr2004-08-151-2/+3
| | | | | | of PS_STRINGS. This is a no-op at present, but it will be needed when running 32-bit Linux binaries on amd64 to ensure PS_STRINGS is in addressable memory.
* Use the USBD_FORCE_SHORT_XFER flag when setting up transmit transfers.iedowse2004-08-151-1/+2
| | | | | | | | | Without this, the device cannot detect the end of ethernet packets whose size is a multiple of the USB packat size. PR: kern/70474 Submitted by: Andrew Thompson <andy@fud.org.nz> MFC after: 1 week
* o Add -l option to jail(8) similar to su(1): before running jail'edmaxim2004-08-152-6/+50
| | | | | | | | | program under specific user's credentials, clean the environment and set only a few variables. PR: bin/70024 Submitted by: demon MFC after: 1 month
* This is a force commit because I forgot from the previous commit (and otherjmg2004-08-150-0/+0
| | | | | | | files): Supported by: nCircle Network Security, Inc. They have/will assign ownership of the code to me.
* Add locking to the kqueue subsystem. This also makes the kqueue subsystemjmg2004-08-1536-529/+1205
| | | | | | | | | | | | | a more complete subsystem, and removes the knowlege of how things are implemented from the drivers. Include locking around filter ops, so a module like aio will know when not to be unloaded if there are outstanding knotes using it's filter ops. Currently, it uses the MTX_DUPOK even though it is not always safe to aquire duplicate locks. Witness currently doesn't support the ability to discover if a dup lock is ok (in some cases). Reviewed by: green, rwatson (both earlier versions)
* Remove misc/screen, which is not packageable.kris2004-08-151-1/+0
|
* Improve the usage. Without any arguments, kgdb(1) works on /dev/memmarcel2004-08-152-49/+126
| | | | | | | | | with the currently running kernel image. Otherwise, one of -c, -n or -r is expected for working on a particular core file (-c), working on a saved dump (-n) or working remotely (-r). When working on a saved dump, a kernel may be omitted. For a remote debugging session (-r), kgdb(1) will use the specified device.
* Fix a style(9) bug (variable definitions inside a nested scope) a patchmarius2004-08-151-4/+2
| | | | | | | of mine introduced in revision 1.10. Approved by: marcel Prodded by: marcel
* Add a new sysctl, debug.kdb.stop_cpus, which controls whether or not werwatson2004-08-151-2/+19
| | | | | | | | | | | attempt to IPI other cpus when entering the debugger in order to stop them while in the debugger. The default remains to issue the stop; however, that can result in a hang if another cpu has interrupts disabled and is spinning, since the IPI won't be received and the KDB will wait indefinitely. We probably need to add a timeout, but this is a useful stopgap in the mean time. Reviewed by: marcel
* sio(4), which never really worked on sparc64, was removed in favour ofmarius2004-08-151-2/+0
| | | | | uart(4) in sparc64/conf/GENERIC revision 1.63 about 9 months ago. Remove its source files here, too.
* - Introduce an uart_cpu_identify() which is implemented in uart_cpu_<arch>.cmarius2004-08-149-2/+86
| | | | | | | | | | | | | | | | | and that can be used as an identify function for all kinds of busses on a certain platform. Expect for sparc64 these are only stubs right now. [1] - For sparc64, add code to its uart_cpu_identify() for registering the on- board ISA UARTs and their resources based on information obtained from Open Firmware. It would be better if this would be done in the OFW ISA code. However, due to the common FreeBSD ISA code and PNP-IDs not always being present in the properties of the ISA nodes there seems to be no good way to implement that. Therefore special casing UARTs as the sole really relevant ISA devices on sparc64 seemed reasonable. [2] Approved by: marcel Discussed with: marcel [1], tmm [2] Tested by: make universe
* Add sparc64/pci/ofw_pci_if.m to the list of MFILES so modules can usemarius2004-08-141-1/+2
| | | | | sparc64/pci/ofw_pci.h. This is a bit messy right now but (hopefully) will get better once the MI OFW PCI code has moved from sparc64/pci to dev/ofw.
* Now that hme(4) is MI build its module on all platforms.marius2004-08-142-4/+6
| | | | Tested by: `make universe` and powerpc cross-build on i386
* Add hme(4) here now that it's MI.marius2004-08-141-0/+2
|
* Make hme(4), i.e. the PCI-variant, MI by reading the MAC address on sytemsmarius2004-08-141-3/+152
| | | | | | | | | | | | | | | without Open Firmware directly instead of using OF_getetheraddr(). This is a bit painful though, as the MAC address is contained in the NA field of the VPD of the EBus bridge, which is is another function of the same chip. To make it worse, the VPD of the EBus bridge can't be accessed via the PCI capability pointer but has to be digged out from the Boot PROM and has a non-standard format. The PCI VPD struct and macros used here should be part of the FreeBSD PCI code nevertheless. Approved by: tmm Based on: NetBSD Tested with: Sun X1032A (hme(4)-isp(4)-combo card) on alpha and i386
* Next step in making usb more newbus:imp2004-08-143-64/+50
| | | | | | | | | | | | | o reprobe children when a new driver is added to uhub o fix the usbd_probe_and_attach to set the ivars to a malloc'd area, as well as freeing the ivars on child destruction. o Don't delete children that don't attach. Evidentally, the need to do this is a common misconception. o minor formatting foo that may violate style(9) at the moment, but keeps the diffs against my p4 tree smaller. This does not solve the ugen gobbling things up problem, but the fixes I have for that expose bugs in other parts of the tree...
* - Capitalize Ethernet and Fast Ethernet.marius2004-08-143-10/+87
| | | | | | | | - Add a NOTES section with information regarding the "local-mac-address?" system configuration variable on sparc64 and add a reference to eeprom(8) for using it. Dump document date for this. - In dc.4, add the on-board DM9102A on Sun Netra X1 and Sun Fire V100 to the list of known working devices.
* - Make OF_getetheraddr() honour the "local-mac-address?" system configmarius2004-08-144-14/+13
| | | | | | | | | | | | | | | variable. If set to "true" OF_getetheraddr() will now return the unique MAC address stored in the "local-mac-address" property of the device's OFW node if present and the host address/system default MAC address if the node doesn't doesn't have such a property. If set to "false" the host address will be returned for all devices like before this change. This brings the behaviour of device drivers for NICs with OFW support/ FCode, i.e. dc(4) for on-board DM9102A on Sun machines, gem(4) and hme(4), regarding "local-mac-address?" in line with NetBSD and Solaris. The man pages of the respective drivers will be updated separately to reflect this change. - Remove OF_getetheraddr2() which was used as a stopgap in dc(4). Its functionality is now part of OF_getetheraddr().
* Remove confused comment.phk2004-08-141-4/+0
|
* Remove spl calls.alc2004-08-141-19/+2
|
OpenPOWER on IntegriCloud