cvs commit: src/sys/ia64/ia64 machdep.c pmap.c
src/sys/ia64/include pmap.h
Marcel Moolenaar
marcel at FreeBSD.org
Sun May 18 21:16:31 PDT 2003
marcel 2003/05/18 21:16:30 PDT
FreeBSD src repository
Modified files:
sys/ia64/ia64 machdep.c pmap.c
sys/ia64/include pmap.h
Log:
pmap_install() needs to be atomic WRT to context switching. Protect
switching user regions (region 0-4) with schedlock. Avoid unnecessary
recursion on schedlock by moving the core functionality to another
function (pmap_switch()) where we assert schedlock is held. Turn
pmap_install() into a wrapper that grabs schedlock. This minimizes
the number of callsites that need to be changed.
Since we already have schedlock in cpu_switch() and cpu_throw(),
have them call pmap_switch() directly. These were also the only two
calls to pmap_install() outside pmap.c, so make pmap_install() static
and remove its prototype from pmap.h
Approved by: re (blanket)
Revision Changes Path
1.133 +6 -3 src/sys/ia64/ia64/machdep.c
1.103 +31 -32 src/sys/ia64/ia64/pmap.c
1.14 +1 -1 src/sys/ia64/include/pmap.h
More information about the cvs-src
mailing list