Skip to content

Commit de2232e

Browse files
committed
m32r: Cosmetic updates of arch/m32r/kernel/entry.S
- Remove unused symbols *_MASK - Change indentation of comments, etc. Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
1 parent abd0a78 commit de2232e

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

‎arch/m32r/kernel/entry.S‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,6 @@
109109
#define SP(reg) @(0x68,reg)
110110
#define ORIG_R0(reg) @(0x6C,reg)
111111

112-
CF_MASK = 0x00000001
113-
TF_MASK = 0x00000100
114-
IF_MASK = 0x00000200
115-
DF_MASK = 0x00000400
116-
NT_MASK = 0x00004000
117-
VM_MASK = 0x00020000
118-
119112
#ifdef CONFIG_PREEMPT
120113
#define preempt_stop(x) CLI(x)
121114
#else
@@ -295,7 +288,7 @@ ENTRY(ei_handler)
295288
#endif
296289
SAVE_ALL
297290
mv r1, sp ; arg1(regs)
298-
; GET_ICU_STATUS;
291+
; get ICU status
299292
seth r0, #shigh(M32R_ICU_ISTS_ADDR)
300293
ld r0, @(low(M32R_ICU_ISTS_ADDR),r0)
301294
push r0
@@ -377,6 +370,7 @@ ENTRY(ei_handler)
377370
.fillinsn
378371
5:
379372
#endif /* CONFIG_PLAT_HAS_INT2ICU */
373+
380374
check_end:
381375
bl do_IRQ
382376
pop r14
@@ -467,7 +461,7 @@ inst:
467461

468462

469463
ENTRY(alignment_check)
470-
/* void alignment_check(int error_code) */
464+
/* void alignment_check(int error_code) */
471465
SWITCH_TO_KERNEL_STACK
472466
SAVE_ALL
473467
ldi r1, #0x30 ; error_code
@@ -477,7 +471,7 @@ error_code:
477471
bra ret_from_exception
478472

479473
ENTRY(rie_handler)
480-
/* void rie_handler(int error_code) */
474+
/* void rie_handler(int error_code) */
481475
SWITCH_TO_KERNEL_STACK
482476
SAVE_ALL
483477
ldi r1, #0x20 ; error_code
@@ -486,7 +480,7 @@ ENTRY(rie_handler)
486480
bra error_code
487481

488482
ENTRY(pie_handler)
489-
/* void pie_handler(int error_code) */
483+
/* void pie_handler(int error_code) */
490484
SWITCH_TO_KERNEL_STACK
491485
SAVE_ALL
492486
ldi r1, #0 ; error_code ; FIXME
@@ -495,8 +489,8 @@ ENTRY(pie_handler)
495489
bra error_code
496490

497491
ENTRY(debug_trap)
498-
.global withdraw_debug_trap
499492
/* void debug_trap(void) */
493+
.global withdraw_debug_trap
500494
SWITCH_TO_KERNEL_STACK
501495
SAVE_ALL
502496
mv r0, sp ; pt_regs
@@ -515,11 +509,9 @@ ENTRY(ill_trap)
515509
bl do_ill_trap
516510
bra error_code
517511

518-
519-
/* Cache flushing handler */
520512
ENTRY(cache_flushing_handler)
521-
.global _flush_cache_all
522513
/* void _flush_cache_all(void); */
514+
.global _flush_cache_all
523515
SWITCH_TO_KERNEL_STACK
524516
push r0
525517
push r1

0 commit comments

Comments
 (0)