Unmask ARM interrupts
authorAlyssa Rosenzweig <alyssa@backtick.town>
Sun, 14 Aug 2016 19:52:14 +0000 (12:52 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Sun, 14 Aug 2016 19:52:14 +0000 (12:52 -0700)
romstage.c
start.s

index c5e8d6c..a48b214 100644 (file)
@@ -182,9 +182,6 @@ int _main(unsigned int cpuid, unsigned int load_address) {
        sdram_init();\r
        printf("SDRAM initialization completed successfully!\n");\r
 \r
        sdram_init();\r
        printf("SDRAM initialization completed successfully!\n");\r
 \r
-        /* test software interrupts */\r
-        __asm__("swi 2");\r
-       \r
        /* bring up ARM */\r
        arm_init();\r
 \r
        /* bring up ARM */\r
        arm_init();\r
 \r
diff --git a/start.s b/start.s
index d36d930..6fc8e90 100644 (file)
--- a/start.s
+++ b/start.s
@@ -96,6 +96,13 @@ L_setup_hw_irq:
        st r3, (r0)
        mov r0, #IC1_VADDR
        st r3, (r0)
        st r3, (r0)
        mov r0, #IC1_VADDR
        st r3, (r0)
+
+        /* unmask ARM interrupts */
+        mov r0, #(IC0_BASE + 0x10 + 24)
+        mov r1, #(IC1_BASE + 0x10 + 24)
+        mov r2, 0x07000000
+        st r2, (r0)
+        st r2, (r1)
         
         /* enable interrupts */
        ei
         
         /* enable interrupts */
        ei
This page took 0.026306 seconds and 4 git commands to generate.