freemyipod r737 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r736‎ | r737 | r738 >
Date:00:05, 12 July 2011
Author:theseven
Status:new
Tags:
Comment:
UMSboot: Fix some nonsense in iPod Classic crt0.S that was probably left over from the iPod Nano 2G
Modified paths:
  • /umsboot/target/ipodclassic/crt0.S (modified) (history)

Diff [purge]

Index: umsboot/target/ipodclassic/crt0.S
@@ -66,11 +66,6 @@
6767 cmp r1, r0
6868 strhi r2, [r0], #4
6969 bhi .clearbss2
70 - ldr r1, =0x38200000
71 - ldr r0, [r1]
72 - orr r0, r0, #1
73 - bic r0, r0, #0x10000
74 - str r0, [r1]
7570 .cleancache:
7671 mrc p15, 0, r15,c7,c10,3
7772 bne .cleancache
@@ -77,17 +72,10 @@
7873 mov r0, #0
7974 mcr p15, 0, r0,c7,c10,4
8075 mcr p15, 0, r0,c7,c5,0
81 - ldr r1, =0x38200000
82 - ldr r0, [r1]
83 - orr r0, r0, #1
84 - bic r0, r0, #0x10000
85 - str r0, [r1]
86 - mov r0, #0
87 - mcr p15, 0, r0,c7,c5,0
8876 add r1, r1, #0x00c00000
8977 add r2, r1, #0x00001000
9078 add r3, r1, #0x00002000
91 - sub r4, r0, #1
 79+ mov r4, #-1
9280 str r4, [r1,#0x14]
9381 str r4, [r2,#0x14]
9482 str r4, [r1,#0xf00]
@@ -94,8 +82,6 @@
9583 str r4, [r2,#0xf00]
9684 str r4, [r3,#0x08]
9785 str r4, [r3,#0x0c]
98 - str r0, [r1,#0x14]
99 - str r0, [r2,#0x14]
10086 msr cpsr_c, #0xd2
10187 ldr sp, =_irqstackend
10288 msr cpsr_c, #0xd7