summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2004-06-24Remove the 8 page limit for sysctl_proc_args after discussing with Theo.Todd C. Miller
Add trivial support for passing a NULL pointer for the argv buffer; currently just returns ARG_MAX for KERN_PROC_ARGV and KERN_PROC_ENV.
2004-06-24Typos in DEBUG code.Miod Vallat
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
2004-06-24Work in progress, early check-in requested by niklas@Andreas Gunnarsson
2004-06-24Add comment explaining what "bootprompt" is forTom Cosgrove
2004-06-24If a line in boot.conf is too long for our buffer, stop before weTom Cosgrove
overrun the buffer, print an error message, then stop processing boot.conf. Also change name of variable "eof" to "rc", since it's not just for eof. ok weingart@
2004-06-24free() correct object; andrushock@korovino.netTheo de Raadt
2004-06-24Add ehci. ok drahn@Thomas Nordin
2004-06-24"error" could be left uninitializedJun-ichiro itojun Hagino
2004-06-24ultra minor KNFJun-ichiro itojun Hagino
2004-06-24endian fix from chris pascoeJolan Luff
tested by nordin@ and david gwynne
2004-06-23Do not send IPIs while cold. Should probably fix the pmap_kremove panics ↵Niklas Hallqvist
some have seen.
2004-06-23oops, keep MP stuff inside MULTIPROCESSORNiklas Hallqvist
2004-06-23Renumber I/O APICs who clash with other APICs. Also clear the deliveryNiklas Hallqvist
mode before setting it to fixed, since the MP BIOS may have left something in that field. This fixed a Quad Xeon we have been loaned over the c2k4.
2004-06-23Assorted night cleanups:Miod Vallat
- only compile debug and ddb-specific code if option DEBUG or option DDB. - shorten code path in 88100 case. - do not enable interrupts before the C handler is called, for the 88110 NMI trap.
2004-06-23a few fixes to systracemarius eriksen
- add an exec message so that whenever a set-uid/gid process exec's a new image which we may control, the exec does not go by unnoticed. - take special care to check for P_SUGIDEXEC as well as P_SUGID, corresponding to the same changes that were made in the ptrace code a while ago ok niels@, sturm@; thanks to naddy for testing
2004-06-23Fix one-byte overflow in interrupt handling allocator. henning@, miod@ okAaron Campbell
2004-06-23pfr_commit_ktable calls functions that can result in the currentRyan Thomas McBride
ktable being destroyed, which makes it unsafe in a SLIST_FOREACH. Fix from Chris Pascoe
2004-06-23Remove useless debug code.Miod Vallat
2004-06-23Make AHD_DEBUG compile. ok krw@Marco Peereboom
2004-06-23Add atw(4), commented out for now.Todd C. Miller
2004-06-23enable ahd by default (still some work for marco and krw, but it noTheo de Raadt
longer locks at boot on mine)
2004-06-23Missed this in the atw(4) commit.Todd C. Miller
2004-06-23tabs vs spacesAaron Campbell
2004-06-23Remove some ifdef notyet symbols for non-existent floppy driver. art@ okAaron Campbell
2004-06-23When servicing 88110 exceptions, reset dsr and isr as fast as possible.Miod Vallat
While there, simplify badaddr() handling on 88110.
2004-06-23Since the NMI interrupt source on 88110 is, well, non maskable, it isMiod Vallat
possible to receive it during autoconf. In this case, do not enable _other_ interrupts while we are servicing it. Note that, on the MVME197, since we are using the BUG for console output during autoconf, it is still possible to abort the bootstrap and return to the BUG with the NMI/ABORT switch.
2004-06-23Hook cdbr and cdboot into the build (though nothing uses them yet).Tom Cosgrove
suggested by deraadt@ ok weingart@
2004-06-23Enter cdboot, a CD-specific second-stage bootrap.Tom Cosgrove
Testing krw@ and todd@, thanks. assistance, testing and ok weingart@
2004-06-23daa should be 0x27 and aaa 0x37Andreas Gunnarsson
ok deraadt@
2004-06-22atw(4) driver from NetBSD (dyoung). Based in part on a port byTodd C. Miller
Matthew Gream. Unfortunately, the adm8211 card I have with me does not work correctly with the driver yet so real testing will have to wait until I get my hands on an adm8211-based DWL-650 or something similar.
2004-06-22Replace a whole bunch of scary uses of strncpy() with strlcpy() andJean-Francois Brousseau
use compat-specific MAXNAMLEN values where appropriate ok millert@, pedro@
2004-06-22Remove... almost 10 years, and things have changed enough that thisTobias Weingartner
is more historic than anything else. If ya want it, find it in the Attic. ok tom@
2004-06-22Change of variable name from read to nread, to reduce differenceTom Cosgrove
from NetBSD version. ok weingart@
2004-06-22Enter cdbr, an El Torito no-emulation CD boot sector that fitsTom Cosgrove
comfortably in a single CD sector of 2,048. Not currently hooked into the build. Based on the FreeBSD equivalent by John Baldwin, jhb (at) FreeBSD (dot) org, who agreed to change to a 3-clause BSD licence. Thanks. assistance, testing and ok weingart@
2004-06-22During exception processing, we are not supposed to fault immediatelyMiod Vallat
after re-enabling the FPU (unless exception handling code is suffering from bugs, of course). Should this happen, invoke the error fault handler, but at least clear the exception state first, so that it gets a chance to run.
2004-06-22Import current NetBSD/FreeBSD 802.11 framework.Todd C. Miller
Based in part on a diff from Matthew Gream.
2004-06-22Add M_LINK0 for net80211; OK markus@ and mcbride@Todd C. Miller
2004-06-22Enable ahd interrupts and reset the channel before scanning the busKenneth R Westerback
for devices. This is how ahc is done too. Fixes probe hang on Theo's box with the 7902B chip. ok marco@
2004-06-22Use SIOCSIFGENERIC and SIOCGIFGENERIC for SIOCSWAVELAN and SIOCGWAVELANTodd C. Miller
instead of SIOCSIFASYNCMAP and SIOCGIFASYNCMAP. Needed for upcoming 802.11 framework. OK deraadt@
2004-06-22The Prism device driver's manual makes a distinction in naming ofTodd C. Miller
config comands and other types but we don't so remove the CNF_ from WI_RID_CNF_ENH_SECURITY and WI_RID_CNF_DBM_ADJUST for consistency and compat with Net and Free.
2004-06-22do not bcopy wrong stuff thereTheo de Raadt
2004-06-22Spacing. ok krw@Marco Peereboom
2004-06-22Remove all static functions. ok krw@Marco Peereboom
2004-06-22Change various macro and symbol names in order to have recognizable *100*Miod Vallat
and *110* names for processor-dependent code. No functional change.
2004-06-22Do not use db_printf() without a godd reason; while there, shrinken someMiod Vallat
messages.
2004-06-22If there is no CIS info the cardbus attach would print an extraTodd C. Miller
double quote; now it doesn't. OK openbsd!beck
2004-06-22support for rcc osb4 and csb5; tested on quad-zion and another box i haveMichael Shalayeff
2004-06-22make sure real/avail mem printfs do unsigned ariths; found by beck@Michael Shalayeff
2004-06-22Pull the plug on source-based routing until remaining bugs are eradicated.Cedric Berger
No need to reconfig kernel or rebuild userland stuff. requested deraadt@, help beck@