| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mtx_enter(lock, type) becomes:
mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks)
mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized)
similarily, for releasing a lock, we now have:
mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN.
We change the caller interface for the two different types of locks
because the semantics are entirely different for each case, and this
makes it explicitly clear and, at the same time, it rids us of the
extra `type' argument.
The enter->lock and exit->unlock change has been made with the idea
that we're "locking data" and not "entering locked code" in mind.
Further, remove all additional "flags" previously passed to the
lock acquire/release routines with the exception of two:
MTX_QUIET and MTX_NOSWITCH
The functionality of these flags is preserved and they can be passed
to the lock/unlock routines by calling the corresponding wrappers:
mtx_{lock, unlock}_flags(lock, flag(s)) and
mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN
locks, respectively.
Re-inline some lock acq/rel code; in the sleep lock case, we only
inline the _obtain_lock()s in order to ensure that the inlined code
fits into a cache line. In the spin lock case, we inline recursion and
actually only perform a function call if we need to spin. This change
has been made with the idea that we generally tend to avoid spin locks
and that also the spin locks that we do have and are heavily used
(i.e. sched_lock) do recurse, and therefore in an effort to reduce
function call overhead for some architectures (such as alpha), we
inline recursion for this case.
Create a new malloc type for the witness code and retire from using
the M_DEV type. The new type is called M_WITNESS and is only declared
if WITNESS is enabled.
Begin cleaning up some machdep/mutex.h code - specifically updated the
"optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN
and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently
need those.
Finally, caught up to the interface changes in all sys code.
Contributors: jake, jhb, jasone (in no particular order)
|
|
|
|
|
|
|
|
|
|
| |
chipset. The MAC address is stored in the APC CMOS RAM and we have to
commit trememdous evil in order to read it. The code to do this is only
activated on the i386 platform. Thanks to Cameron Grant for providing
access to a test box for me to tinker with.
This will fix the problem where the sis driver ends up with a station
address of 00:00:00:00:00:00 on boards that use the 630E chipset.
|
|
|
|
| |
Pointy-hat to: asmodai
|
|
|
|
|
|
|
| |
* a ">" is really ">=" ;
* do not try to fetch zero-sized blocks from the card;
* make sure that bpf gets the packets it wants even with
bridging active;
|
|
|
|
| |
header, or we would have a negative length passed to ether_input().
|
|
|
|
| |
Submitted by: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
|
|
|
|
| |
Pointed out by: Asmodai
|
|
|
|
| |
Approved by: wpaul
|
|
|
|
| |
Submitted by: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
|
|
|
|
| |
Submitted by: wpaul
|
|
|
|
| |
Initalise is not an english word.
|
|
|
|
|
|
|
|
|
| |
different hardware address, we should drop it (this should only
happen in promiscuous mode). Relocate the code for this check
from before ng_ether(4) processing to after ng_ether(4) processing.
Also fix a compiler warning.
PR: kern/24465
|
| |
|
|
|
|
| |
Reminded by: Peter Wemm <peter@netplex.com.au>
|
|
|
|
|
|
|
|
| |
kmem_free() for now. Kmem_malloc() and kmem_free() now have appropriate
assertions in place, and these checks aren't feasible until more of the
networking code is locked down. Also, the extra assertions here should
already be caught by the WITNESS code as lock order violations should
mutex operations on Giant be reintroduced here later.
|
|
|
|
|
| |
this negates the explicit disabling of interrupts when entering the
debugger in Debugger().
|
|
|
|
|
|
|
|
| |
adv_free() as the ISA probe routine doesn't malloc() ccb_infos but does
call adv_free().
- Release the ISA-only overrun DMA tags, bufs, and maps if the probe fails.
Tested by: rwatson
|
|
|
|
|
|
|
| |
the index of the pollfd array to the number of fd's currently open, not
the maximum number of fd's. ie: if you had 0,1,2 open, you could not
use pollfd slots higher than 20. The specs say we only have to support
OPEN_MAX [64] entries but we allow way more than that.
|
|
|
|
|
| |
frame. Teach ddb about this as there is one less word for it to skip
over when finding a trapframe on the interrupt frame stack.
|
|
|
|
| |
compilation.
|
|
|
|
|
|
| |
include the changes 1.49 was supposed to have.
Noticed by: peter
|
| |
|
|
|
|
| |
cards will work too.
|
|
|
|
| |
Obtained from: NetBSD/OpenBSD
|
| |
|
|
|
|
|
| |
driver registration. This should allow things like da, sa, cd etc to be
in seperate KLD's to the cam core and make them preloadable.
|
|
|
|
|
| |
modify default buffer size heuristic to not max out at 4k. mpg123 should now
behave better under load.
|
| |
|
|
|
|
| |
Not pretty but it works (I hope)...
|
| |
|
| |
|
| |
|
|
|
|
|
| |
devs other than the first, and allowed to clone a nonexistent
device..
|
|
|
|
| |
Compatability is not an existing english word.
|
|
|
|
| |
Seperate does not exist in the english language.
|
|
|
|
|
|
| |
Seperate does not exist in the english language.
Submitted to look at by: kris
|
| |
|
|
|
|
|
|
| |
backwards in the three drivers which want to do that.
Reviewed by: mikeh
|
|
|
|
| |
There is no such thing as wierd in the english language.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
space when it calls the disconnect PRU function without checking that it
there.
|
|
|
|
|
|
|
|
|
|
|
|
| |
only covers about 3-4 lines.
- Don't lower the IPL while we are on the interrupt stack. Instead, save
the raised IPL and change the saved IPL in sched_lock to IPL_0 before
calling mi_switch(). When we are resumed, restore the saved IPL in
sched_lock to the saved raised IPL so that when we release sched_lock
we won't lower the IPL. Without this, we would get nested interrupts
that would overflow the kernel stack.
Tested by: mjacob
|
|
|
|
|
|
| |
also try implement teh documented behaviour in socket nodes
so that when there is only one hook, an unaddressed write/send
will DTRT and send the data to that hook.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* Add the id for the Rio 800 USB.
Submitted by: Wesley Morgan <morganw@chemikals.org>
|
| |
|