Try a different address
[rpi-open-firmware.git] / arm_monitor.c
old mode 100755 (executable)
new mode 100644 (file)
index c9168c7..ab5149e
@@ -27,5 +27,18 @@ void monitor_irq() {
 void monitor_start() {\r
        printf("Starting IPC monitor ...\n");\r
 \r
+        /* dump status */\r
+        printf("Status --- %X\n", mmio_read32(0x7E00B9B8));\r
+\r
+        /* enable IRQ */\r
+        mmio_write32(0x7E00B9BC, 0x1);\r
+\r
+        for(;;) {\r
+            if(mmio_read32(0x7E00B9B8) != 0x40000000) {\r
+                printf("Squeal!\n");\r
+            }\r
+        }\r
+\r
        __asm__ __volatile__ ("sleep" :::);\r
-}
\ No newline at end of file
+        for(;;);\r
+}\r
This page took 0.023405 seconds and 4 git commands to generate.