diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-12-13 10:49:49 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-12-13 10:49:49 +0000 |
commit | 7464352578e1b479dc6f3372b023428b892dd3da (patch) | |
tree | ad8f409be6b6beda826a0a64b327224aabaa2823 /sys/arch | |
parent | ecb10536712a4f1188529b5cacf940422590e781 (diff) |
Remove superfluous SAVE_CPU_SREG()/RESTORE_CPU_SREG() around ast() call in
u_general exception handler. The SAVE_CPU_SREG() is actually harmful, since
it overwrites any changes made to to s0-s8 in the trapframe by ptrace(2).
Fixes some issues with GDB.
ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mips64/mips64/exception.S | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arch/mips64/mips64/exception.S b/sys/arch/mips64/mips64/exception.S index deae8865def..d23933e39b3 100644 --- a/sys/arch/mips64/mips64/exception.S +++ b/sys/arch/mips64/mips64/exception.S @@ -1,4 +1,4 @@ -/* $OpenBSD: exception.S,v 1.30 2010/02/01 05:26:17 miod Exp $ */ +/* $OpenBSD: exception.S,v 1.31 2010/12/13 10:49:48 kettenis Exp $ */ /* * Copyright (c) 2002-2003 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -435,16 +435,9 @@ NNON_LEAF(u_general, FRAMESZ(CF_SZ), ra) beq v0, zero, 4f nop - PTR_L t0, CI_CURPROCPADDR(t1) # curprocpaddr - SAVE_CPU_SREG(t0, 0) - jal ast nop - GET_CPU_INFO(t1, t0) - PTR_L t0, CI_CURPROCPADDR(t1) - RESTORE_CPU_SREG(t0, 0) - b 0b nop |