diff options
author | Mark Salter <msalter@redhat.com> | 1997-09-01 20:51:47 +0000 |
---|---|---|
committer | Mark Salter <msalter@redhat.com> | 1997-09-01 20:51:47 +0000 |
commit | f15f0ab2f32192b34e87312452502eded35596d4 (patch) | |
tree | 3999e253aa9c702f50a95497042e4603cccdf819 /arch/mips/kernel/gdb-low.S | |
parent | bb56ec72b6ca0a744d7746c02d553f3fdd799f0f (diff) |
Disable interrupts for gdb stub. Also, save cp0_context
Diffstat (limited to 'arch/mips/kernel/gdb-low.S')
-rw-r--r-- | arch/mips/kernel/gdb-low.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/kernel/gdb-low.S b/arch/mips/kernel/gdb-low.S index 9a19d63ad..bd7ef94fb 100644 --- a/arch/mips/kernel/gdb-low.S +++ b/arch/mips/kernel/gdb-low.S @@ -93,7 +93,7 @@ sw fp,GDB_FR_REG30(sp) sw ra,GDB_FR_REG31(sp) - STI /* disable interrupts */ + CLI /* disable interrupts */ /* * Followed by the floating point registers @@ -166,6 +166,8 @@ sw v0,GDB_FR_CP0_ENTRYLO0(sp) mfc0 v0,CP0_ENTRYLO1 sw v0,GDB_FR_CP0_ENTRYLO1(sp) + mfc0 v0,CP0_CONTEXT + sw v0,GDB_FR_CP0_CONTEXT(sp) mfc0 v0,CP0_PAGEMASK sw v0,GDB_FR_CP0_PAGEMASK(sp) mfc0 v0,CP0_WIRED @@ -203,7 +205,10 @@ lw v0,GDB_FR_CP0_ENTRYLO0(sp) lw v1,GDB_FR_CP0_INDEX(sp) mtc0 v0,CP0_ENTRYLO0 + lw v0,GDB_FR_CP0_CONTEXT(sp) mtc0 v1,CP0_INDEX + mtc0 v0,CP0_CONTEXT + /* * Next, the floating point registers |