patch-2.3.8 linux/include/asm-alpha/io.h
Next file: linux/include/asm-alpha/machvec.h
Previous file: linux/include/asm-alpha/init.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Tue Jun 22 10:46:52 1999
- Orig file:
v2.3.7/linux/include/asm-alpha/io.h
- Orig date:
Thu May 13 11:00:08 1999
diff -u --recursive --new-file v2.3.7/linux/include/asm-alpha/io.h linux/include/asm-alpha/io.h
@@ -29,15 +29,16 @@
*/
static inline void __set_hae(unsigned long new_hae)
{
- unsigned long ipl = swpipl(7);
+ unsigned long flags;
+ __save_and_cli(flags);
alpha_mv.hae_cache = new_hae;
*alpha_mv.hae_register = new_hae;
mb();
-
/* Re-read to make sure it was written. */
new_hae = *alpha_mv.hae_register;
- setipl(ipl);
+
+ __restore_flags(flags);
}
static inline void set_hae(unsigned long new_hae)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)