Remove "memory" clobber statement from enable_intr(). Enabling interrupts

doesn't invalidate loaded variables.

Fix formatting of recent changes.
This commit is contained in:
Bruce Evans 1995-08-26 20:45:59 +00:00
parent 826c5c4980
commit fadc51bdc6
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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