Add a memory clobber to alpha_pal_swapctx() and alpha_pal_swpipl();
the former affects the address space, and the latter can let interrupt handlers in to clobber memory.
This commit is contained in:
parent
8c8f0f0f82
commit
c285667b3c
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: alpha_cpu.h,v 1.42 2001/07/17 20:54:58 thorpej Exp $ */
|
/* $NetBSD: alpha_cpu.h,v 1.43 2001/12/18 04:18:22 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996 Carnegie-Mellon University.
|
* Copyright (c) 1996 Carnegie-Mellon University.
|
||||||
@ -430,7 +430,7 @@ alpha_pal_swpctx(unsigned long ctx)
|
|||||||
: "=r" (a0), "=r" (v0)
|
: "=r" (a0), "=r" (v0)
|
||||||
: "i" (PAL_OSF1_swpctx), "0" (a0)
|
: "i" (PAL_OSF1_swpctx), "0" (a0)
|
||||||
/* clobbers t0, t8..t11, a0 (above) */
|
/* clobbers t0, t8..t11, a0 (above) */
|
||||||
: "$1", "$22", "$23", "$24", "$25");
|
: "$1", "$22", "$23", "$24", "$25", "memory");
|
||||||
|
|
||||||
return (v0);
|
return (v0);
|
||||||
}
|
}
|
||||||
@ -445,7 +445,7 @@ alpha_pal_swpipl(unsigned long ipl)
|
|||||||
: "=r" (a0), "=r" (v0)
|
: "=r" (a0), "=r" (v0)
|
||||||
: "i" (PAL_OSF1_swpipl), "0" (a0)
|
: "i" (PAL_OSF1_swpipl), "0" (a0)
|
||||||
/* clobbers t0, t8..t11, a0 (above) */
|
/* clobbers t0, t8..t11, a0 (above) */
|
||||||
: "$1", "$22", "$23", "$24", "$25");
|
: "$1", "$22", "$23", "$24", "$25", "memory");
|
||||||
|
|
||||||
return (v0);
|
return (v0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user