protect doubleword register from interrupt.
This commit is contained in:
parent
e3cdb47e47
commit
f0803f8192
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: locore_mips3.S,v 1.44 2000/08/01 23:38:26 jeffs Exp $ */
|
||||
/* $NetBSD: locore_mips3.S,v 1.45 2000/08/06 12:30:36 shin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
|
||||
|
@ -2499,12 +2499,17 @@ LEAF(mips3_write_compare)
|
|||
END(mips3_write_compare)
|
||||
|
||||
LEAF(mips3_write_xcontext_upper)
|
||||
mfc0 v1, MIPS_COP_0_STATUS # save status register
|
||||
mtc0 zero, MIPS_COP_0_STATUS # disable interrupts
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
dsll a0, 32
|
||||
dmtc0 a0, MIPS_COP_0_TLB_XCONTEXT # Store segment map for access
|
||||
nop
|
||||
nop
|
||||
j ra
|
||||
nop
|
||||
mtc0 v1, MIPS_COP_0_STATUS # restore status register
|
||||
END(mips3_write_xcontext_upper)
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue