summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2002-03-14Whoops. missing simple_unlock.Artur Grabowski
From thorpej@netbsd.org
2002-03-14Fix *some* problems with new ahc driver that were surfaced withKenneth R Westerback
the recent changes to scsiconf.c. a) Restore marking of appropriate devices as tagged b) Fix an off-by-one error that sprayed bits around c) Use correct field (quirks) when setting SDEV_NOTAGS bit d) Use TAG_ENB define instead of MSG_SIMPLE_Q_TAG when manipulating hscb->control. Both were defined to the same value, but TAG_ENB is the define used to extract the bit later on. This leaves problems, most often seen as faults when accessing a CD drive and disk drive on the same bus. ok smurph@
2002-03-13Fetch mac address from local-mac-address property, and use myetheraddr() onlyJason Wright
if it fails. (The right thing to do is have myetheraddr() do this, but that will come later).
2002-03-13Try fetching the mac address from the local-mac-address property, and ifJason Wright
it fails, fall back to myetheraddr()
2002-03-13Complete rewrite of the powerpc pmap handling, Instead of keepingDale Rahn
the spill list for each PTEG, the V->P translations are stored in trees for each pmap. All valid kernel mappings are preallocated in 1-1 memory so that tlb spill/loads for kernel accesses can be looked up while physical, user mappings are not guaranteed to be 1-1 mapped, thus the kernel must go virtual to look up user mappings. While this is more expensive, the tree search is much lower cost than the long linked list search. Also on each pmap_remove() it was necessary to search the linked lists for each possible mapping, now it just looks up the entry in the tree. This change gives a 25-36% speedup in 'make build' time. What was around 2:50 is now around 1:55 on a 733MHz G4. This change causes a likely existing bug to appear quite often, it deals with the segment register invalidation in kernel mode. Because of that problem, currently this change limits the physical memory used to 256MB. This limitation will be fixed soon, it is not an error in the pmap code. * Effort sponsored in part by the Defense Advanced Research Projects * Agency (DARPA) and Air Force Research Laboratory, Air Force * Materiel Command, USAF, under agreement number F30602-01-2-0537.
2002-03-13On sparc, PAGE_SIZE and friends might not be a compile-time constant.Miod Vallat
Instead of using a homegrown set of variables in this case, rely on uvmexp fields once uvm has been initialized. This requires a few #include <uvm/uvm_extern.h> here and there in the kernel as well. Idea from art@, changes by me.
2002-03-12rest of copy_on_fault proper handlingsMichael Shalayeff
2002-03-12Credentials now freed on re-use of dq structure.Constantine Sapuntzakis
2002-03-12sparc64's aren't likely to be CPU_ISSUN4CJason Wright
2002-03-12Look up the TTE and only do the streaming cache dance if the mapping is ↵Jason Wright
marked as streaming.
2002-03-12don't need to call IFQ_SET_READY() twice; this driver was alreadyFederico G. Schwindt
ALTQify'ed.
2002-03-12extraneous 'or'; from Sven Kirmess <sven.kirmess@gmx.net>Michael Shalayeff
2002-03-12swiss german and french keymaps; from pckbd by Mathias Schmocker ↵Michael Shalayeff
<smat@polaris.smat.ch>
2002-03-12Change the PT_IO interfaces like discussed onArtur Grabowski
the bsd-api-discuss list.
2002-03-12Emulate ptrace(PT_STEP in software.Artur Grabowski
More or less directly from FreeBSD.
2002-03-12In the PT_STEP case, first set the new pc, then arrangeArtur Grabowski
for the single-step. This can slightly break the error handling when setting the sstep fails, but allows us to emulate single stepping in software on arch that don't have support for that in hardware.
2002-03-12sync with KAMEKenjiro Cho
ALTQify more drivers. ok millert@
2002-03-12oopsMichael Shalayeff
2002-03-12Update to zlib-1.1.4Todd C. Miller
2002-03-11Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.Artur Grabowski
They still stay in MD code for backwards compatibility, but a check in ptrace.h checks if they are defined. Note - the same thing will be done with PT_{GET,SET}FPREGS once vax implements them and with PT_STEP when it's implemented by sparc, sparc64 and alpha.
2002-03-11If the clock has lost over 1000 days, use the filesystem time insteadDale Rahn
of the hardware clock. Prevent clock screwage due to lost battery on laptops where the hardware clock goes back to 0. From NetBSD.
2002-03-11Add a more sane API for reading/writing traced process memoryArtur Grabowski
with ptrace - PT_IO. Man page update in a few.
2002-03-11Add <machine/ieeefp.h>, will be needed by libc shortly.Miod Vallat
2002-03-11Add a <machine/varargs.h> skeleton for userland.Miod Vallat
2002-03-10rdboot -> hdbootHugh Graham
2002-03-10call inittodr() to avoid reseting the clock; problem reported in tech@.Federico G. Schwindt
millert@ ok.
2002-03-09Be less parochial and remember that others may need to use quirks!Kenneth R Westerback
Just set the SDEV_NOTAGS, SDEV_NOWIDE, SDEV_NOSYNC bits in quirks. DON'T zero all other bits that may have already been set. Noted (and fix tested) by lebel@.
2002-03-09Completely rewritten keyboard detection mechanism. Instead of using theDale Rahn
openfirmware commands (which apple seems to have removed), walk the device tree attempting to detect what type of keyboard(s) are present. Give preference to USB if USB and ADB both found. If none found hope for USB. This does have a problem on RevC iMacs booting without USB keyboard, it seems apple left the adb device tree information which indicates an ADB kebyoard is present. This fixes newer ibook and PBG4 keyboard detection.
2002-03-09check tiflags instead of th as th might point to freed memory; pointed outNiels Provos
by wayne@stallion.oz.au; also whack register.
2002-03-09Add case for BTYP_1305.Hugh Graham
2002-03-09Fix POOL_DIAGNOSTICArtur Grabowski
From Kamil Andrusz <wizz@mniam.net> pr/2455
2002-03-08Remove the code which reenables interrupts in these interrupt controllers,Dale Rahn
they do not appear to be capable of handling all possible nested interrupts.
2002-03-08Fix arc4random() usage; add more randomness to pf_get_sport().Mike Pechkin
dhartmei@, provos@ ok
2002-03-08numraid is needed, always.Thierry Deval
2002-03-08have to set p_md as well, used to shoot clouds beforeMichael Shalayeff
2002-03-08do not add maddr twice, break out of the loop if cmd post failsMichael Shalayeff
2002-03-08last arg to the copystr could be 0, also correct onfault handlingMichael Shalayeff
2002-03-08semicolon is not always what it seems, replace w/ a \n in asm labelsMichael Shalayeff
2002-03-08syncMichael Shalayeff
2002-03-08syncMichael Shalayeff
2002-03-08lxtphy needs ukphy_subrJason Wright
2002-03-08Clean up:Jason Wright
Allow the children to register their own interrupt handlers (and set the appropriate interrupt enable bits in the csr) Verify the asio revision
2002-03-08use timeout(9) to schedule TCP timers. this avoid traversing allNiels Provos
tcp connections during tcp_slowtimo. apdapted from thorpej@netbsd.org
2002-03-08Move the message buffer out of low memory, Openfirmware clears the areaDale Rahn
on reboot. perhaps OF uses it at other times? Since OF always use the same memory addresses, this should always allocate the same ram to the msgbuf, and allow it to be preserved across reboot.
2002-03-08Make msghdr fields usable from all languages.Marc Espie
ok millert@
2002-03-07Clean up BUS_DMA_* flags, and make sure all arch's define:Jason Wright
BUS_DMA_READ, BUS_DMA_WRITE, and BUS_DMA_STREAMING
2002-03-07Remove some debugging code accidentally committed in previousJason Wright
2002-03-07From NetBSD:Jason Wright
Fix calculation of dma segment length when the DVMA range is crossing the boundary.
2002-03-07From watching source-changes@netbsd.org: rb_dmabase needs to be initializedJason Wright
-after- the call to bus_dmamem_map()
2002-03-07use an augmented red-black tree to keep track of free space in the vm_map.Niels Provos
uvm_tree_sanity is left as debugging help but needs to be enabled manually. okay art@