git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
arch
/
frv
/
kernel
/
break.S
diff --git
a/arch/frv/kernel/break.S
b/arch/frv/kernel/break.S
index
dac4a5f
..
687c48d
100644
(file)
--- a/
arch/frv/kernel/break.S
+++ b/
arch/frv/kernel/break.S
@@
-9,11
+9,12
@@
* 2 of the License, or (at your option) any later version.
*/
* 2 of the License, or (at your option) any later version.
*/
+#include <linux/sys.h>
+#include <linux/config.h>
#include <linux/linkage.h>
#include <asm/setup.h>
#include <asm/segment.h>
#include <asm/ptrace.h>
#include <linux/linkage.h>
#include <asm/setup.h>
#include <asm/segment.h>
#include <asm/ptrace.h>
-#include <asm/thread_info.h>
#include <asm/spr-regs.h>
#include <asm/errno.h>
#include <asm/spr-regs.h>
#include <asm/errno.h>
@@
-23,11
+24,13
@@
#
.section .bss.stack
.globl __break_user_context
#
.section .bss.stack
.globl __break_user_context
- .balign
THREAD_SIZE
+ .balign
8192
__break_stack:
__break_stack:
- .space THREAD_SIZE - FRV_FRAME0_SIZE
-__break_frame_0:
- .space FRV_FRAME0_SIZE
+ .space (8192 - (USER_CONTEXT_SIZE + REG__DEBUG_XTRA)) & ~7
+__break_stack_tos:
+ .space REG__DEBUG_XTRA
+__break_user_context:
+ .space USER_CONTEXT_SIZE
#
# miscellaneous variables
#
# miscellaneous variables
@@
-72,8
+75,8
@@
__entry_break:
#endif
LEDS 0x1001,gr31
#endif
LEDS 0x1001,gr31
- sethi.p %hi(__break_
frame_0
),gr31
- setlo %lo(__break_
frame_0
),gr31
+ sethi.p %hi(__break_
user_context
),gr31
+ setlo %lo(__break_
user_context
),gr31
stdi gr2,@(gr31,#REG_GR(2))
movsg ccr,gr3
stdi gr2,@(gr31,#REG_GR(2))
movsg ccr,gr3
@@
-583,8
+586,8
@@
__break_continue:
# set up the kernel stack pointer
sti sp,@(gr31,#REG_SP)
# set up the kernel stack pointer
sti sp,@(gr31,#REG_SP)
- sethi.p %hi(__break_
frame_0
),sp
- setlo %lo(__break_
frame_0
),sp
+ sethi.p %hi(__break_
stack_tos
),sp
+ setlo %lo(__break_
stack_tos
),sp
# finish building the exception frame
stdi gr4 ,@(gr31,#REG_GR(4))
# finish building the exception frame
stdi gr4 ,@(gr31,#REG_GR(4))
@@
-649,12
+652,9
@@
__break_continue:
movsg nmar,gr5
movsg dcr,gr6
movsg nmar,gr5
movsg dcr,gr6
- sethi.p %hi(__debug_status),gr7
- setlo %lo(__debug_status),gr7
-
- stdi gr4 ,@(gr7,#DEBUG_BRR)
- sti gr19,@(gr7,#DEBUG_BPSR)
- sti.p gr6 ,@(gr7,#DEBUG_DCR)
+ stdi gr4 ,@(gr31,#REG_BRR)
+ sti gr19,@(gr31,#REG_BPSR)
+ sti.p gr6 ,@(gr31,#REG_DCR)
# trap exceptions during break handling and disable h/w breakpoints/watchpoints
sethi %hi(DCR_EBE),gr5
# trap exceptions during break handling and disable h/w breakpoints/watchpoints
sethi %hi(DCR_EBE),gr5
@@
-699,10
+699,7
@@
__break_continue:
lddi @(gr31,#REG_PSR) ,gr22
ldi @(gr31,#REG_PC) ,gr21
ldi @(gr31,#REG_TBR) ,gr20
lddi @(gr31,#REG_PSR) ,gr22
ldi @(gr31,#REG_PC) ,gr21
ldi @(gr31,#REG_TBR) ,gr20
-
- sethi.p %hi(__debug_status),gr6
- setlo %lo(__debug_status),gr6
- ldi.p @(gr6,#DEBUG_DCR) ,gr6
+ ldi.p @(gr31,#REG_DCR) ,gr6
andi gr22,#PSR_S,gr19 /* rebuild BPSR */
andi.p gr22,#PSR_ET,gr5
andi gr22,#PSR_S,gr19 /* rebuild BPSR */
andi.p gr22,#PSR_ET,gr5