]> Chaos Git - corbenik/corbenik.git/commitdiff
Misc changes (again)
authorchaoskagami <chaos.kagami@gmail.com>
Wed, 17 Aug 2016 21:46:17 +0000 (17:46 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Wed, 17 Aug 2016 21:46:17 +0000 (17:46 -0400)
README.md
source/firm/firm.c
source/std/memory.c

index 8ca51670ebbebba68dee01a0e2e9700cf47e1413..9f2057d85e7985ebf49e96397b8415afa1dffa99 100644 (file)
--- a/README.md
+++ b/README.md
@@ -203,7 +203,7 @@ Credits
  * Code segment dumping + loading, ideas, and a lot of miscellaneous code.
 
 @AuroraWright
- * RE work, patches, EmuNAND, and Reboot/Firmlaunch C code. https://github.com/AuroraWright/Luma3ds
+ * RE work, patches, EmuNAND, SVC replacement/injection, and Reboot/Firmlaunch C code. https://github.com/AuroraWright/Luma3ds
 
 @Reisyukaku
  * For the 'Force TestMenu' patch, and RE work. Also coded ReiNand, which some parts of Luma are derived from and thus some parts of this.
index 171dc3648f4fae540d6de9d03229a24cd3bf57ff..bc2be84cfea2245807d11ab7c2d210e210a4d178 100644 (file)
@@ -409,24 +409,6 @@ load_firm(firm_h *dest, char *path, char *path_firmkey, char *path_cetk, uint32_
     return 0;
 }
 
-// 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;
-    *(volatile uint32_t *)0x10202014 = 0;
-
-    while (!*a11_entry)
-        ;
-    ((void (*)()) * a11_entry)();
-}
-
 extern void wait();
 
 __attribute__ ((noreturn))
index d015daeca70ba4d22d843e4babe449b1c7194cf8..fa30d53f811c25d598b5e47c1e68836781af3f40 100644 (file)
@@ -128,8 +128,10 @@ int
 atoi(const char *str)
 {
     int res = 0;
+
     while (str[0] && str[0] >= '0' && str[0] <= '9') {
-        res = str[0] - '0' + res * 10;
+        res *= 10;
+        res += str[0] - '0';
         str++;
     }