Try a different address
[rpi-open-firmware.git] / arm_monitor.c
index f066a38..ab5149e 100644 (file)
@@ -27,13 +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
-            for(unsigned int i = 0; i < 99999; ++i);\r
-\r
-            printf("  --- %X\n", mmio_read32(0x7E00B9B0));\r
+            if(mmio_read32(0x7E00B9B8) != 0x40000000) {\r
+                printf("Squeal!\n");\r
+            }\r
         }\r
-//     __asm__ __volatile__ ("sleep" :::);\r
+\r
+       __asm__ __volatile__ ("sleep" :::);\r
+        for(;;);\r
 }\r
This page took 0.025404 seconds and 4 git commands to generate.