Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2001 23:31:30 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jake Burkholder <jake@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   RE: cvs commit: src/sys/i386/include globals.h
Message-ID:  <XFMail.010120233130.jhb@FreeBSD.org>
In-Reply-To: <200101210311.f0L3B3k73993@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 21-Jan-01 Jake Burkholder wrote:
> jake        2001/01/20 19:11:03 PST
> 
>   Modified files:
>     sys/i386/include     globals.h 
>   Log:
>   Implement optimized PCPU accessors.  These are necessary to support a
>   pre-emptable kernel.  For variables of size 4 bytes or less they compile
>   to a single instruction, which does not allow a process to migrate cpus
>   in the middle, and get the value for the "wrong" cpu.

Many per-cpu variables, esp. structs, will probably need to be protected via
locks.  curproc and other thread-related variables shouldn't be affected by
preemption, however.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010120233130.jhb>