]> Chaos Git - corbenik/corbenik.git/commitdiff
Minor naming change
authorchaoskagami <chaos.kagami@gmail.com>
Tue, 24 May 2016 02:51:08 +0000 (22:51 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Tue, 24 May 2016 02:51:08 +0000 (22:51 -0400)
source/firm/firm.c

index 0bdd65b14b3ca4919b0a852a961cb41f3ffbb855..d2f79508be276c3fd9953c1075ad5ef90832fe91 100644 (file)
@@ -262,10 +262,14 @@ exit_error:
     return status;
 }
 
-void __attribute__((naked)) disable_lcds()
+// FAIR WARNING; This function is arm11 code, not ARM9.
+// They share enough in common that this isn't a problem,
+// but still worth documenting.
+void __attribute__((naked)) arm11_preboot_halt()
 {
     *a11_entry = 0; // Don't wait for us
 
+    // Disables the LCD.
     *(volatile uint32_t*)0x10202A44 = 0;
     *(volatile uint32_t*)0x10202244 = 0;
     *(volatile uint32_t*)0x1020200C = 0;
@@ -322,7 +326,7 @@ boot_firm()
 
     // No fprintf will work from here on out.
 
-    *a11_entry = (uint32_t)disable_lcds;
+    *a11_entry = (uint32_t)arm11_preboot_halt;
     while (*a11_entry)
         ; // Make sure it jumped there correctly before changing it.
     *a11_entry = (uint32_t)firm_loc->a11Entry;