Whitespace cleanup only.
This commit is contained in:
@@ -19,13 +19,13 @@
|
||||
|
||||
/* The following two macros are taken from FreeBSD... */
|
||||
|
||||
.macro PUSHFRAMEINSVC
|
||||
.macro PUSHFRAMEINSVC
|
||||
stmdb sp, {r0-r3} /* Save 4 registers */
|
||||
mov r0, lr /* Save xxx32 r14 */
|
||||
mov r1, sp /* Save xxx32 sp */
|
||||
mrs r3, spsr /* Save xxx32 spsr */
|
||||
mrs r2, cpsr /* Get the CPSR */
|
||||
bic r2, r2, #(CPSR_MODE_MASK)/* Fix for SVC mode */
|
||||
bic r2, r2, #(CPSR_MODE_MASK) /* Fix for SVC mode */
|
||||
orr r2, r2, #(CPSR_MODE_SVC)
|
||||
msr cpsr_c, r2 /* Punch into SVC mode */
|
||||
mov r2, sp /* Save SVC sp */
|
||||
@@ -41,18 +41,18 @@
|
||||
mov r0, r0 /* NOP for previous instruction */
|
||||
mrs r0, spsr_all
|
||||
str r0, [sp, #-4]! /* Save spsr */
|
||||
.endm
|
||||
.endm
|
||||
|
||||
.macro PULLFRAMEFROMSVCANDEXIT
|
||||
.macro PULLFRAMEFROMSVCANDEXIT
|
||||
ldr r0, [sp], #0x0004 /* Get the SPSR from stack */
|
||||
msr spsr_all, r0 /* restore SPSR */
|
||||
ldmia sp, {r0-r14}^ /* Restore registers (usr mode) */
|
||||
mov r0, r0 /* NOP for previous instruction */
|
||||
add sp, sp, #(4*15) /* Adjust the stack pointer */
|
||||
ldmia sp, {sp, lr, pc}^ /* Restore lr and exit */
|
||||
.endm
|
||||
.endm
|
||||
|
||||
.text
|
||||
.text
|
||||
|
||||
.globl _vectors_start
|
||||
_vectors_start:
|
||||
@@ -65,29 +65,38 @@ _vectors_start:
|
||||
ldr pc, _arm_irq
|
||||
ldr pc, _arm_fiq
|
||||
|
||||
|
||||
_arm_reset:
|
||||
.word arm_reserved // actually reset, but not used when mapped
|
||||
|
||||
_arm_undefined:
|
||||
.word arm_undefined
|
||||
|
||||
_arm_syscall:
|
||||
.word arm_syscall
|
||||
|
||||
_arm_prefetch_abort:
|
||||
.word arm_prefetch_abort
|
||||
|
||||
_arm_data_abort:
|
||||
.word arm_data_abort
|
||||
|
||||
_arm_reserved:
|
||||
.word arm_reserved
|
||||
|
||||
_arm_irq:
|
||||
.word arm_irq
|
||||
|
||||
_arm_fiq:
|
||||
.word arm_fiq
|
||||
|
||||
|
||||
.globl _vectors_end
|
||||
_vectors_end:
|
||||
|
||||
|
||||
.rept 64
|
||||
.word 0xdeadbeef
|
||||
.endr
|
||||
|
||||
abort_stack:
|
||||
.word . - 4
|
||||
.word 0xdeadbeef
|
||||
@@ -95,6 +104,7 @@ abort_stack:
|
||||
.rept 64
|
||||
.word 0xcafebabe
|
||||
.endr
|
||||
|
||||
irq_stack:
|
||||
.word . - 4
|
||||
.word 0xcafebabe
|
||||
@@ -102,6 +112,7 @@ irq_stack:
|
||||
.rept 64
|
||||
.word 0xaaaabbbb
|
||||
.endr
|
||||
|
||||
fiq_stack:
|
||||
.word . - 4
|
||||
.word 0xaaaabbbb
|
||||
@@ -109,6 +120,7 @@ fiq_stack:
|
||||
.rept 64
|
||||
.word 0xccccdddd
|
||||
.endr
|
||||
|
||||
und_stack:
|
||||
.word . - 4
|
||||
.word 0xccccdddd
|
||||
@@ -167,6 +179,7 @@ FUNCTION(arm_reserved):
|
||||
b .
|
||||
FUNCTION_END(arm_reserved)
|
||||
|
||||
|
||||
FUNCTION(arm_irq):
|
||||
sub lr, lr, #4
|
||||
PUSHFRAMEINSVC
|
||||
|
||||
Reference in New Issue
Block a user