Attempt to get mailboxes up
[rpi-open-firmware.git] / arm_loader.c
old mode 100755 (executable)
new mode 100644 (file)
index 4afedca..2d2fa3b
@@ -21,7 +21,7 @@ ARM initialization stuff.
 #include "hardware.h"\r
 \r
 \r
-#define logf(fmt, ...) printf("[ARM::%s]: " fmt, __FUNCTION__, ##__VA_ARGS__);\r
+#define logf(fmt, ...) printf("[ARMLDR:%s]: " fmt, __FUNCTION__, ##__VA_ARGS__);\r
 \r
 extern char L_arm_code_start;\r
 extern char L_arm_code_end;\r
@@ -256,6 +256,9 @@ void arm_init() {
         * set the mem size for who knows what reason.\r
         */\r
        ARM_CONTROL0 |= 0x008 | ARM_C0_APROTSYST | ARM_C0_SIZ1G | ARM_C0_FULLPERI;\r
+        ARM_CONTROL1 |= ARM_C1_PERSON | ARM_C1_MAIL;\r
+\r
+        ARM_IRQ_ENBL3 |= ARM_IE_MAIL;\r
 \r
        logf("using C0: 0x%X\n", ARM_CONTROL0);\r
 \r
@@ -277,4 +280,4 @@ void arm_init() {
                logf("0x%X 0x%X 0x%X 0x%X\n", arm_membase[0], arm_membase[1], arm_membase[2], arm_membase[3]);\r
                udelay(5000);\r
        }\r
-}
\ No newline at end of file
+}\r
This page took 0.024611 seconds and 4 git commands to generate.