Try a different address
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 25 Aug 2016 00:25:35 +0000 (17:25 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 25 Aug 2016 00:25:35 +0000 (17:25 -0700)
arm_chainloader/drivers/mbr_disk.cc
arm_chainloader/main.c

index de95a70..01c238a 100644 (file)
@@ -119,10 +119,7 @@ struct MbrImpl {
                }\r
 \r
                if (!validate_signature()) {\r
-                        /* poke the VPU */\r
-                        volatile unsigned int* mail = (volatile unsigned int*) 0x2000B8A0;\r
-                        while(1) *mail = 0xA1755A01;\r
-                       panic("invalid master boot record signature (got 0x%x)", mbr->mbr_sig);\r
+                                       panic("invalid master boot record signature (got 0x%x)", mbr->mbr_sig);\r
                }\r
 \r
                logf("MBR contents:\n");\r
index d2d506e..6956fb2 100644 (file)
@@ -36,7 +36,7 @@ void main() {
        heap_init();\r
 \r
        /* c++ runtime */\r
-       cxx_init();\r
+//     cxx_init();\r
 \r
         /* poke the VPU */\r
 /*        __asm__ volatile("mov r3, #0\n" \\r
@@ -45,6 +45,8 @@ void main() {
                          "mcr p15, 0, r3, C7, C14, 0\n" \\r
                          "mcr p15, 0, r3, C7, C10, 4\n" \\r
                          "mcr p15, 0, r3, C7, C10, 5\n");*/\r
+        printf("\nPoking the VPU....\n");\r
+        mmio_write32(0x3E00B8A0, 0xA1755A01);\r
 \r
        panic("Nothing else to do!");\r
 \r
This page took 0.027008 seconds and 4 git commands to generate.