All pastes #371623 Raw Edit

Unnamed

public text v1 · immutable
#371623 ·published 2007-02-25 14:34 UTC
rendered paste body
Index: bootloader/ipod.c
===================================================================
--- bootloader/ipod.c   (revision 12477)
+++ bootloader/ipod.c   (working copy)
@@ -228,6 +228,7 @@
     bool button_was_held;
     struct partinfo* pinfo;
     unsigned short* identify_info;
+    unsigned int* x = 0x40017f00;

     /* Check the button hold status as soon as possible - to
        give the user maximum chance to turn it off in order to
@@ -284,6 +285,8 @@
     printf("Rockbox boot loader");
     printf("Version: 20%s", version);
     printf("IPOD version: 0x%08x", IPOD_HW_REVISION);
+    printf("r0=%08x r2=%08x r3=%08x",x[0],x[1],x[2]);
+    fatal_error();

     i=ata_init();
     if (i==0) {
Index: firmware/target/arm/crt0-pp-bl.S
===================================================================
--- firmware/target/arm/crt0-pp-bl.S    (revision 12477)
+++ firmware/target/arm/crt0-pp-bl.S    (working copy)
@@ -50,6 +50,9 @@
     .equ    CACHE_CTRL, 0x6000c000
 #endif

+    ldr    r7, =0x40017f00    @ 96KB into IRAM - only for video/nano...
+    stmia  r7!, {r0, r2, r3}
+
     msr    cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ */

 /* 1 - Copy the bootloader to IRAM */