aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-23 17:17:40 -0700
committerChristian Cunningham <cc@localhost>2022-01-23 17:17:40 -0700
commitb664ad4a49233a17d2ace7a07e9c7681b6f6e98a (patch)
treea0720bfcd65a9920376301017887c0ca2c64f486
parentfff7e6dae85af08ca98ac13315bea166946a690c (diff)
Remove old comments
-rw-r--r--src/boot.S31
1 files changed, 5 insertions, 26 deletions
diff --git a/src/boot.S b/src/boot.S
index 1faf860..25a5a86 100644
--- a/src/boot.S
+++ b/src/boot.S
@@ -24,44 +24,23 @@ reset:
// save cpsr.
mrs r0, cpsr
- // setup sp in IRQ mode.
- ///bic r1, r0, #0x1f
- ///orr r1, r1, #0x12
- ///msr cpsr_c,r1
+ // Setup sp in IRQ mode.
cps #0x12
mov sp,#0x4000
- // setup sp in FIQ mode.
- ///bic r1, r0, #0x1f
- ///orr r1, r1, #0x11
- ///msr cpsr_c,r1
+ // Setup sp in FIQ mode.
cps #0x11
mov sp,#0x2000
- // setup sp in UNDEF mode.
- ///bic r1, r0, #0x1f
- ///orr r1, r1, #0x1B
- ///msr cpsr_c,r1
+ // Setup sp in UNDEF mode.
cps #0x1B
mov sp,#0x1000
- // setup sp in ABORT mode.
- ///bic r1, r0, #0x1f
- ///orr r1, r1, #0x17
- ///msr cpsr_c,r1
+ // Setup sp in ABORT mode.
cps #0x17
mov sp,#0x0800
// Setup sp in USR/SYS mode.
- ///bic r1, r0, #0x1f
- ///orr r1, r1, #0x1f
- ///msr cpsr_c,r1
cps #0x1f
mov sp,#0x6000
- // restore to SVC (in the case of a reset)
- ///bic r1, r0, #0x1f
- ///orr r1, r1, #0x13
- ///msr cpsr_c, r1
- //msr cpsr_c, r0
-
- // setup the stack in SVC mode.
+ // Setup sp in SVC mode.
cps #0x13
mov sp, #0x8000