Remove "memory" clobber statement from enable_intr(). Enabling interrupts
doesn't invalidate loaded variables. Fix formatting of recent changes.
This commit is contained in:
parent
826c5c4980
commit
fadc51bdc6
@ -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.38 1995/07/25 21:28:47 bde Exp $
|
||||
* $Id: cpufunc.h,v 1.39 1995/08/08 04:50:52 dyson Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -69,7 +69,7 @@ disable_intr(void)
|
||||
static __inline void
|
||||
enable_intr(void)
|
||||
{
|
||||
__asm __volatile("sti" : : : "memory");
|
||||
__asm __volatile("sti");
|
||||
}
|
||||
|
||||
#define HAVE_INLINE_FFS
|
||||
@ -268,8 +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) :
|
||||
: "memory");
|
||||
__asm __volatile("movl %%cr3, %0; movl %0, %%cr3" : "=r" (temp)
|
||||
: : "memory");
|
||||
}
|
||||
|
||||
static __inline u_long
|
||||
|
@ -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.38 1995/07/25 21:28:47 bde Exp $
|
||||
* $Id: cpufunc.h,v 1.39 1995/08/08 04:50:52 dyson Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -69,7 +69,7 @@ disable_intr(void)
|
||||
static __inline void
|
||||
enable_intr(void)
|
||||
{
|
||||
__asm __volatile("sti" : : : "memory");
|
||||
__asm __volatile("sti");
|
||||
}
|
||||
|
||||
#define HAVE_INLINE_FFS
|
||||
@ -268,8 +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) :
|
||||
: "memory");
|
||||
__asm __volatile("movl %%cr3, %0; movl %0, %%cr3" : "=r" (temp)
|
||||
: : "memory");
|
||||
}
|
||||
|
||||
static __inline u_long
|
||||
|
Loading…
x
Reference in New Issue
Block a user