aboutsummaryrefslogtreecommitdiffstats
path: root/arch/h8300/platform/h8s
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2007-05-06 17:50:35 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 15:12:58 -0400
commitc728d60455e8e8722ee08312a75f38dd7a866b5e (patch)
treec848cbddc7557fa1cf00993245e562007465dadb /arch/h8300/platform/h8s
parentaeecf3142d82414d511135cc85f86caddfb58338 (diff)
h8300 generic irq
h8300 using generic irq handler patch. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/h8300/platform/h8s')
-rw-r--r--arch/h8300/platform/h8s/entry.S17
1 files changed, 9 insertions, 8 deletions
diff --git a/arch/h8300/platform/h8s/entry.S b/arch/h8300/platform/h8s/entry.S
index aeb2e9faa9b2..f3d6b8e8f959 100644
--- a/arch/h8300/platform/h8s/entry.S
+++ b/arch/h8300/platform/h8s/entry.S
@@ -31,12 +31,13 @@
31 mov.l er0,@-sp 31 mov.l er0,@-sp
32 32
33 stc ccr,r0l /* check kernel mode */ 33 stc ccr,r0l /* check kernel mode */
34 orc #0x10,ccr
35 btst #4,r0l 34 btst #4,r0l
36 bne 5f 35 bne 5f
37 36
38 mov.l sp,@SYMBOL_NAME(sw_usp) /* user mode */ 37 /* user mode */
39 mov.l @sp,er0 38 mov.l sp,@SYMBOL_NAME(sw_usp)
39 mov.l @sp,er0 /* restore saved er0 */
40 orc #0x10,ccr /* switch kernel stack */
40 mov.l @SYMBOL_NAME(sw_ksp),sp 41 mov.l @SYMBOL_NAME(sw_ksp),sp
41 sub.l #(LRET-LORIG),sp /* allocate LORIG - LRET */ 42 sub.l #(LRET-LORIG),sp /* allocate LORIG - LRET */
42 stm.l er0-er3,@-sp 43 stm.l er0-er3,@-sp
@@ -55,8 +56,9 @@
55 mov.l er0,@(LER0-LER3:16,sp) /* copy ER0 */ 56 mov.l er0,@(LER0-LER3:16,sp) /* copy ER0 */
56 bra 6f 57 bra 6f
575: 585:
58 mov.l @sp,er0 /* kernel mode */ 59 /* kernel mode */
59 subs #2,sp /* dummy ccr */ 60 mov.l @sp,er0 /* restore saved er0 */
61 subs #2,sp /* set dummy ccr */
60 stm.l er0-er3,@-sp 62 stm.l er0-er3,@-sp
61 mov.w @(LRET-LER3:16,sp),r1 /* copy old ccr */ 63 mov.w @(LRET-LER3:16,sp),r1 /* copy old ccr */
62 mov.b r1h,r1l 64 mov.b r1h,r1l
@@ -94,6 +96,7 @@
94 mov.l @sp+,er1 96 mov.l @sp+,er1
95 add.l #(LRET-LER1),sp /* remove LORIG - LRET */ 97 add.l #(LRET-LER1),sp /* remove LORIG - LRET */
96 mov.l sp,@SYMBOL_NAME(sw_ksp) 98 mov.l sp,@SYMBOL_NAME(sw_ksp)
99 andc #0xef,ccr /* switch to user mode */
97 mov.l er0,sp 100 mov.l er0,sp
98 bra 8f 101 bra 8f
997: 1027:
@@ -173,9 +176,6 @@ SYMBOL_NAME_LABEL(interrupt_entry)
173SYMBOL_NAME_LABEL(system_call) 176SYMBOL_NAME_LABEL(system_call)
174 subs #4,sp /* dummy LVEC */ 177 subs #4,sp /* dummy LVEC */
175 SAVE_ALL 178 SAVE_ALL
176 mov.w @(LCCR:16,sp),r1
177 bset #4,r1l
178 ldc r1l,ccr /* restore ccr */
179 mov.l er0,er4 179 mov.l er0,er4
180 mov.l #-ENOSYS,er0 180 mov.l #-ENOSYS,er0
181 mov.l er0,@(LER0:16,sp) 181 mov.l er0,@(LER0:16,sp)
@@ -198,6 +198,7 @@ SYMBOL_NAME_LABEL(system_call)
198 mov.l @(LER1:16,sp),er0 198 mov.l @(LER1:16,sp),er0
199 mov.l @(LER2:16,sp),er1 199 mov.l @(LER2:16,sp),er1
200 mov.l @(LER3:16,sp),er2 200 mov.l @(LER3:16,sp),er2
201 andc #0x7f,ccr
201 jsr @er4 202 jsr @er4
202 mov.l er0,@(LER0:16,sp) /* save the return value */ 203 mov.l er0,@(LER0:16,sp) /* save the return value */
203#if defined(CONFIG_SYSCALL_PRINT) 204#if defined(CONFIG_SYSCALL_PRINT)