Attempt to get mailboxes up
[rpi-open-firmware.git] / romstage.c
old mode 100755 (executable)
new mode 100644 (file)
index 1bd0b08..a48b214
@@ -17,8 +17,8 @@ VideoCoreIV first stage bootloader.
 \r
 =============================================================================*/\r
 \r
-#include "lib/common.h"\r
-#include "hardware.h"\r
+#include <common.h>\r
+#include <hardware.h>\r
 \r
 uint32_t g_CPUID;\r
 \r
@@ -146,6 +146,11 @@ void switch_vpu_to_pllc() {
 \r
 extern void sdram_init();\r
 extern void arm_init();\r
+extern void monitor_start();\r
+\r
+void print_crap() {\r
+       printf("TB_BOOT_OPT = 0x%X\n", TB_BOOT_OPT);\r
+}\r
 \r
 int _main(unsigned int cpuid, unsigned int load_address) {\r
        switch_vpu_to_pllc();\r
@@ -169,8 +174,10 @@ int _main(unsigned int cpuid, unsigned int load_address) {
        printf("CPUID    = 0x%X\n", cpuid);\r
        printf("LoadAddr = 0x%X\n", load_address);\r
 \r
+       print_crap();\r
+\r
        g_CPUID = cpuid;\r
-       \r
+\r
        /* bring up SDRAM */\r
        sdram_init();\r
        printf("SDRAM initialization completed successfully!\n");\r
@@ -178,6 +185,9 @@ int _main(unsigned int cpuid, unsigned int load_address) {
        /* bring up ARM */\r
        arm_init();\r
 \r
+       /* start vpu monitor */\r
+       monitor_start();\r
+\r
        panic("main exiting!");\r
 }\r
 \r
This page took 0.026368 seconds and 4 git commands to generate.