Try a different address
[rpi-open-firmware.git] / arm_monitor.c
index c1b6c1d..ab5149e 100644 (file)
@@ -27,17 +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, 1);\r
+        mmio_write32(0x7E00B9BC, 0x1);\r
 \r
         for(;;) {\r
-            for(unsigned int i = 0; i < 99999; ++i);\r
-\r
-            if( (mmio_read32(0x7E00B9B8) & 0x40000000) == 0) {\r
-                putchar('-');\r
-            } else {\r
-                putchar('!');\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.022189 seconds and 4 git commands to generate.