From 1b0ee53e4ef845556e3607b35fb37abfe41a7ae2 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Tue, 17 Aug 2021 09:13:40 +0200 Subject: [PATCH] removed unused parts of boot.S and changed ordering in boot process --- kinclude/boot.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kinclude/boot.S b/kinclude/boot.S index ecae623..754c435 100644 --- a/kinclude/boot.S +++ b/kinclude/boot.S @@ -16,10 +16,6 @@ stack_top: .global _start _start: - // setup a0 to hold |trap tbl addr|mode| - // len:| 30 | 2 | - la a0, trap_vector - csrrw zero, CSR_MTVEC, a0 // write a0 into mtvec csr entry // enable interrupts in mstatus // this is the setting loaded: // [07] MPIE = 1 - we want to enable interrupts with mret @@ -28,6 +24,10 @@ _start: // all other bits should be zero li a0, 0x80 csrrw zero, CSR_MSTATUS, a0 // write to mstatus + // setup a0 to hold |trap tbl addr|mode| + // len:| 30 | 2 | + la a0, trap_vector + csrrw zero, CSR_MTVEC, a0 // write a0 into mtvec csr entry // write .option push .option norelax