[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: Re: CVS: cvs.openbsd.org: src
- From: Artur Grabowski <art_(_at_)_blahonga_(_dot_)_org>
- Date: 28 Nov 2007 00:52:34 +0100
Artur Grabowski <art_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org> writes:
> CVSROOT: /cvs
> Module name: src
> Changes by: art_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2007/11/27 11:04:01
> Modified files:
> sys/sys : systm.h
> sys/kern : makesyscalls.sh
> Log message:
> Add possibility to add flags to syscalls in syscalls.master to mark
> syscalls as NOLOCK and MPSAFE. The flags have slightly different semantics:
> NOLOCK - the syscall doesn't grab any locks whatsoever.
> MPSAFE - the syscall deals with its own locking.
> What this means in practice is that NOLOCK syscalls can always be done
> without the biglock. The MPSAFE syscalls can be done without the biglock
> on CPUs that don't handle interrupts that require biglock (to preserve
> lock ordering).
> deraadt@ ok
Now that I think about it, parts of this might have come from NetBSD
originally. But I don't really remember since I found it in one of my
really ancient trees. So for the record: From NetBSD unless it wasn't.