diff --git a/bootloader/ipod.c b/bootloader/ipod.c index 4de6b61e62..97a4cebd69 100644 --- a/bootloader/ipod.c +++ b/bootloader/ipod.c @@ -340,6 +340,7 @@ void* main(void) #endif TMP_IPOD_HW_REVISION = IPOD_HW_REVISION; + ipod_hw_rev = IPOD_HW_REVISION; system_init(); kernel_init(); diff --git a/firmware/system.c b/firmware/system.c index 1ef5fda290..bfd97104a1 100644 --- a/firmware/system.c +++ b/firmware/system.c @@ -1136,12 +1136,12 @@ void UIE(unsigned int pc, unsigned int num) #if CONFIG_CPU==PP5020 +unsigned int ipod_hw_rev; + #ifndef BOOTLOADER extern void TIMER1(void); extern void ipod_4g_button_int(void); -unsigned int ipod_hw_rev; - void irq(void) { if (CPU_INT_STAT & TIMER1_MASK)