Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-05-05 | #include <sys/lock.h> not needed. i.e. these compile fine without it. | Kenneth R Westerback | |
2007-05-05 | malo_hexdump() is only used by code under MALO_DEBUG, so ifdef it | Jonathan Gray | |
ok mglocker@ claudio@ | |||
2007-05-05 | Remove axe_rxstart() which is an uneeded leftover from the FreeBSD version. | Jonathan Gray | |
2007-05-05 | move xl_detach() -- which is only used by cardbus -- to the cardbus code. | Theo de Raadt | |
ok jsg | |||
2007-05-05 | Kill disk_find and disk_resetstat that noone uses. If you ever need | Artur Grabowski | |
them, they are still in cvs. | |||
2007-05-05 | Properly ifdef debug bits to save a bit of space. | Jonathan Gray | |
ok reyk@ | |||
2007-05-05 | Define MUTEX_OLDIPL where they were missing, will be used (reasonably) shortly. | Miod Vallat | |
2007-05-05 | vn_access hasn't been used for ages and it's just a wrapper with | Artur Grabowski | |
locking around VOP_ACCESS. It can go. | |||
2007-05-05 | Simple single-processor only mutex implementation. | Miod Vallat | |
2007-05-05 | disable the interrupts on interface shutdown | Reyk Floeter | |
2007-05-05 | allocate dma memory, setup rx/tx/status rings, initialize the ring | Reyk 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-04 | lockmgr -> rwlock. | Kenneth R Westerback | |
"reads good" art@ ok marco@ | |||
2007-05-04 | when we are in ramdisk mode, we must also disable any previous mountroot | Theo de Raadt | |
setting that pre-setroot() code did (for instance a network boot) found by phessler, tested by reyk | |||
2007-05-04 | the hardware does checksumming on rx as well. mark the mbufs with what the | David Gwynne | |
hw says. | |||
2007-05-04 | Faster pmap_extract() code for pmap_kernel, from NetBSD. | Miod Vallat | |
2007-05-04 | advertise tx checksumming to the network stack, and tell the hardware to | David Gwynne | |
do it. | |||
2007-05-04 | more locc() dies | Theo de Raadt | |
2007-05-04 | increase the number of tx and rx descriptors from 64 to 128 each | David Gwynne | |
2007-05-04 | locc() is dead, spotted by miod | Theo de Raadt | |
2007-05-04 | move bcd tables to the only place that uses them (the unused mcd driver); | Theo de Raadt | |
ok miod | |||
2007-05-04 | call the right function to fill the rxf fifo after rxd | David Gwynne | |
2007-05-04 | disable debugging output | David Gwynne | |
2007-05-04 | put more rx descriptors back on the chip straight after we've taken some | David Gwynne | |
off. | |||
2007-05-04 | wrap the wptr round when we hit the end of the fifo. | David Gwynne | |
2007-05-04 | remove 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-04 | make findblkmajor() and findblkname() MI; ok miod | Theo de Raadt | |
2007-05-04 | Remove dead code. | Artur Grabowski | |
2007-05-04 | firmload for nx as well | Jonathan Gray | |
2007-05-04 | bnx requires firmload | Jonathan Gray | |
2007-05-04 | Oops. Forgot to commit this part. | Artur Grabowski | |
We need to include lock_machdep even on non-MP kernels now for rw_cas. | |||
2007-05-04 | Kill a dead variable. | Artur Grabowski | |
Pointed out by thib@ | |||
2007-05-04 | Implement 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 the | Artur 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-04 | make 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-04 | Initialize 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-04 | Skip 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-04 | when it does not compile we KNOW it was not tested. come on | Theo de Raadt | |
2007-05-04 | swap the port register table arrays to make it better readble and fix some | Reyk Floeter | |
register typos... on init, wait for the receive engine to be ready before setting up the descriptor rings. | |||
2007-05-04 | setroot() was a ugly mix of MI and MD code, with different bugs on different | Theo 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..) | |||
2007-05-04 | do not call vic_init() on ENETRESET in the ioctl handler, use | Reyk Floeter | |
vic_iff() instead. vic_init() calls vic_init_data() which sets up the rings and allocates the dma maps. it could happen that vic_init() was called for multiple times without releasing them first by calling vic_uninit_data(). ouch! this may have caused some problems related to dmamap corruption but we'll do further investigation. ok dlg@ | |||
2007-05-03 | Add monitor mode. Add fast channel switching. Do some simplifications | Marcus Glocker | |
while there. Comments, tested, and OK claudio@ | |||
2007-05-03 | Config file for MULTIPROCESSOR kernel. | Mark Kettenis | |
2007-05-03 | allocate DMA memory for the per-port Rx, Tx (command), and Status ring | Reyk Floeter | |
context. | |||
2007-05-03 | Use if_flags instead of ifr_flags. | Marco Pfatschbacher | |
It shouldn't make a difference, but some ioctl-callers don't initialize the ifreq properly. Fixes a panic w/ tun(4) on trunk(4). OK reyk@, claudio@ | |||
2007-05-03 | Add dummy functions to make MULTIPROCESSOR kernels compile. | Mark Kettenis | |
2007-05-03 | a nxb NIC can have up to 4 nx ports and the latest firmware uses some | Reyk Floeter | |
port-specific registers, for the NIU (phy) and the CRB (~mac). fine. but i have to use an ugly mapping table for the port-specific crb registers because their offsets are not consistent and do not allow to use a subregion per port. ugh. | |||
2007-05-03 | Update CGSIZE macro so that it is no longer based on fs_cpg. | Todd C. Miller | |
This was part of the ffs2 changes but was not committed earlier in order to make the userland and kernel changes independent. NOTE: the change to newfs require an updated fs.h; building an updated newfs with the old fs.h may result in a broken filesystem. OK otto@ | |||
2007-05-03 | Enable support for > 512MB of physical memory on mips64 systems, by using | Miod Vallat | |
XKPHYS instead of KSEG[01] for direct mappings. Then, detect memory above 256MB on O2 by poking at the CRIME registers (ARCbios will not report memory above 256MB, which is mapped above 1GB physical, to the system), and add it to the UVM managed memory. Tested on r5k, rm5200 and r10k with and without more than 256MB, matching hinv reports in all cases. CRIME memory decoding based on a diff from kettenis@ in december 2005. | |||
2007-05-03 | Remove MCA ghosts, no changes in .o files. | Alexander Yurchenko | |
Free commit ticket from miod@. | |||
2007-05-03 | Implement pmap_steal_memory() on powerpc. With some help from art@. | Miod Vallat | |