Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 2003 21:16:30 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/ia64/ia64 machdep.c pmap.c src/sys/ia64/include pmap.h
Message-ID:  <200305190416.h4J4GUpV049722@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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