diff options
author | dyson <dyson@FreeBSD.org> | 1995-08-08 04:50:52 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1995-08-08 04:50:52 +0000 |
commit | 87fdf08e35609c4f79780184279bb09237fd5865 (patch) | |
tree | 984e4001afb55653953078387b795a9ffdccba95 /sys/amd64 | |
parent | 8d12d53030caca27dff01deb2bed2b75b179dbab (diff) | |
download | FreeBSD-src-87fdf08e35609c4f79780184279bb09237fd5865.zip FreeBSD-src-87fdf08e35609c4f79780184279bb09237fd5865.tar.gz |
Make the spl oriented inline functions less likely to allow
potentially volatile memory to be kept in registers during
the "call" (inline expansion.) Do the same for pmap_update.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/cpufunc.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h index 117b59e..92a5a0d 100644 --- a/sys/amd64/include/cpufunc.h +++ b/sys/amd64/include/cpufunc.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cpufunc.h,v 1.37 1995/05/30 08:00:30 rgrimes Exp $ + * $Id: cpufunc.h,v 1.38 1995/07/25 21:28:47 bde Exp $ */ /* @@ -63,13 +63,13 @@ bdb(void) static __inline void disable_intr(void) { - __asm __volatile("cli"); + __asm __volatile("cli" : : : "memory"); } static __inline void enable_intr(void) { - __asm __volatile("sti"); + __asm __volatile("sti" : : : "memory"); } #define HAVE_INLINE_FFS @@ -268,7 +268,8 @@ pmap_update(void) * This should be implemented as load_cr3(rcr3()) when load_cr3() * is inlined. */ - __asm __volatile("movl %%cr3, %0; movl %0, %%cr3" : "=r" (temp)); + __asm __volatile("movl %%cr3, %0; movl %0, %%cr3" : "=r" (temp) : + : "memory"); } static __inline u_long |