summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-05-06garbage collect release_fpu() and synchronize_fpstate()Martin Reindl
2007-05-06Whack "No counter-timer" message. These days, most UltraSPARC cpu's don'tMark Kettenis
have one. ok deraadt@
2007-05-06do not fill RTAX_GATEWAY for RTM_DELETE, ok claudioHenning Brauer
2007-05-06point the macros for the interrupt coalescing registers at the rightDavid Gwynne
location. they moved from what the doco says to somewhere else. pointed out by Nadav Shemer (thanks)
2007-05-06at least always print a new line, even if NOPSSTed Unangst
2007-05-06More lockmgr -> rwlock low hanging fruit.Kenneth R Westerback
ok dlg@
2007-05-06Add the mp setperf mechanism to AMD64, like its i386 counterpart it allowsGordon Willem Klok
all cpus in a system supporting frequency and voltage scaling to be scaled by the same amount corresponding to the user (or apmd on their behalf) performance level. This diff also teaches amd64 about acpi_hasprocfvs (ACPI has processor frequency and voltage scaling). It also moves initilization of the underlying setperf mechanism such as powernow to mainbus from the cpu indentification and initilization code inspired by similar changes dim@ made to i386 durring h2k6. This is necessary to implement the AMD recommended method for retreiving p_state data from the ACPI _PSS object (a diff comming soon). It will also simplify the potential addition of enhanced speedstep as found on newer intel processors with EMT64 capable of running OpenBSD/amd64. MP setperf functionality verifed by myself and Johan M:son Lindman <tybolt AT solace DOT miun DOT se> on opteron 265 and 270 systems respectively. General testing done by many others thanks! ok tedu, dim
2007-05-06typoDavid Gwynne
2007-05-06bcd.c diedTheo de Raadt
2007-05-05simple single-processor only mutex implementationMartin Reindl
ok miod@
2007-05-05Directly map IPL_xxx in terms of ALPHA_PSL_IPL_xxx values, and implementMiod Vallat
splassert. ok art@ martin@
2007-05-05#include <sys/lock.h> not needed. i.e. these compile fine without it.Kenneth R Westerback
2007-05-05malo_hexdump() is only used by code under MALO_DEBUG, so ifdef itJonathan Gray
ok mglocker@ claudio@
2007-05-05Remove axe_rxstart() which is an uneeded leftover from the FreeBSD version.Jonathan Gray
2007-05-05move xl_detach() -- which is only used by cardbus -- to the cardbus code.Theo de Raadt
ok jsg
2007-05-05Kill disk_find and disk_resetstat that noone uses. If you ever needArtur Grabowski
them, they are still in cvs.
2007-05-05Properly ifdef debug bits to save a bit of space.Jonathan Gray
ok reyk@
2007-05-05Define MUTEX_OLDIPL where they were missing, will be used (reasonably) shortly.Miod Vallat
2007-05-05vn_access hasn't been used for ages and it's just a wrapper withArtur Grabowski
locking around VOP_ACCESS. It can go.
2007-05-05Simple single-processor only mutex implementation.Miod Vallat
2007-05-05disable the interrupts on interface shutdownReyk Floeter
2007-05-05allocate dma memory, setup rx/tx/status rings, initialize the ringReyk Floeter
context, and enable interrupts. it is not yet ready - i still need to implement the rx/tx handlers, handle the producer/consumer ids, and make it work.
2007-05-04lockmgr -> rwlock.Kenneth R Westerback
"reads good" art@ ok marco@
2007-05-04when we are in ramdisk mode, we must also disable any previous mountrootTheo de Raadt
setting that pre-setroot() code did (for instance a network boot) found by phessler, tested by reyk
2007-05-04the hardware does checksumming on rx as well. mark the mbufs with what theDavid Gwynne
hw says.
2007-05-04Faster pmap_extract() code for pmap_kernel, from NetBSD.Miod Vallat
2007-05-04advertise tx checksumming to the network stack, and tell the hardware toDavid Gwynne
do it.
2007-05-04more locc() diesTheo de Raadt
2007-05-04increase the number of tx and rx descriptors from 64 to 128 eachDavid Gwynne
2007-05-04locc() is dead, spotted by miodTheo de Raadt
2007-05-04move bcd tables to the only place that uses them (the unused mcd driver);Theo de Raadt
ok miod
2007-05-04call the right function to fill the rxf fifo after rxdDavid Gwynne
2007-05-04disable debugging outputDavid Gwynne
2007-05-04put more rx descriptors back on the chip straight after we've taken someDavid Gwynne
off.
2007-05-04wrap the wptr round when we hit the end of the fifo.David Gwynne
2007-05-04remove strcpy and strcat from the kernel; they are dead and unused code.Reyk Floeter
(OpenBSD does not use strcat/strcpy in the kernel, if people do it in external modules they should update their code) ok deraadt@
2007-05-04make findblkmajor() and findblkname() MI; ok miodTheo de Raadt
2007-05-04Remove dead code.Artur Grabowski
2007-05-04firmload for nx as wellJonathan Gray
2007-05-04bnx requires firmloadJonathan Gray
2007-05-04Oops. Forgot to commit this part.Artur Grabowski
We need to include lock_machdep even on non-MP kernels now for rw_cas.
2007-05-04Kill a dead variable.Artur Grabowski
Pointed out by thib@
2007-05-04Implement rw_cas for i386.Artur Grabowski
It uses a function pointer to choose between the 386 and 486 versions. The 386 version is not MP safe, but we're not expecting MP support for 386 cpus. miod@ ok (and prodding)
2007-05-04- Rename rw_test_and_set to rw_cas, since most litterature uses theArtur Grabowski
test_and_set name for some other operation, while cas is generally used for compare and set (cmpxchg in intel land, cas in sparc land). - Make rw locks properly MP safe (provided that rw_cas is implemented in MD code). Most operations were MP safe except the sleep where we could have set the "I'm sleeping" flag before actually going to sleep so that the wakeup could miss us. Now, using the split tsleep, we first setup the sleep (put us on the sleep queues), then set the flag aborting the sleep if the lock has changed and then finally go to sleep. miod@ ok (and he's been prodding me for days to get this in)
2007-05-04make carp's routing table modification attempts (imho broken by design)Henning Brauer
at least exhibit routing messages so it does not confuse the userland routing daemons by routing table changes not reflected by messages on the routing socket. effect would be bgpd using wrong nexthops for example, in the worst case (that i actually ran into) blackholing traffic. ok reyk claudio "looks correct" miod
2007-05-04Initialize the sis_timeout early in attach instead of sis_init.Artur Grabowski
Sometimes we can can call timeout_del on it before we call sis_init. From mickey. art@ ok.
2007-05-04Skip the kernel pmap when accounting for executability range changes.Artur Grabowski
This could lead to some heavy problems if called from kernel threads (which is the only way to get past the next test with the kernel pmap). From mickey. art@ toby@ ok.
2007-05-04when it does not compile we KNOW it was not tested. come onTheo de Raadt
2007-05-04swap the port register table arrays to make it better readble and fix someReyk Floeter
register typos... on init, wait for the receive engine to be ready before setting up the descriptor rings.
2007-05-04setroot() was a ugly mix of MI and MD code, with different bugs on differentTheo de Raadt
machines. Instead -- build one solid clean MI version, and thenchange all the architectures to use it. ok various people, tested on almost all cases. (it is a 10094 line diff..)