Module Name:    src
Committed By:   snj
Date:           Sun May 10 20:40:35 UTC 2009

Modified Files:
        src/sys/arch/m68k/include [netbsd-5-0]: psl.h

Log Message:
Pull up following revision(s) (requested by mhitch in ticket #743):
        sys/arch/m68k/include/psl.h: revision 1.14
Add memory clobber to the instructions that change the IPL in the status
register.  See also kern/38637.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.13.88.1 src/sys/arch/m68k/include/psl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/include/psl.h
diff -u src/sys/arch/m68k/include/psl.h:1.13 src/sys/arch/m68k/include/psl.h:1.13.88.1
--- src/sys/arch/m68k/include/psl.h:1.13	Thu Feb 16 20:17:13 2006
+++ src/sys/arch/m68k/include/psl.h	Sun May 10 20:40:35 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: psl.h,v 1.13 2006/02/16 20:17:13 perry Exp $	*/
+/*	$NetBSD: psl.h,v 1.13.88.1 2009/05/10 20:40:35 snj Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -79,7 +79,7 @@
 	int sr;
 
 	__asm volatile ("movew %%sr,%0; movew %1,%%sr" :
-	    "=&d" (sr) : "di" (s));
+	    "=&d" (sr) : "di" (s) : "memory");
 
 	return sr;
 }
@@ -92,7 +92,7 @@
 	__asm volatile("movw %%sr,%0" : "=d" (sr));
 
 	if ((u_int16_t)level >= PSL_HIGHIPL || (u_int16_t)level > (u_int16_t)sr)
-		__asm volatile("movw %0,%%sr" :: "di" (level));
+		__asm volatile("movw %0,%%sr" :: "di" (level) : "memory");
 
 	return sr;
 }

Reply via email to