From b664ad4a49233a17d2ace7a07e9c7681b6f6e98a Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sun, 23 Jan 2022 17:17:40 -0700 Subject: Remove old comments --- src/boot.S | 31 +++++-------------------------- 1 file 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 -- cgit v1.2.1