diff options
Diffstat (limited to 'firmware/target/arm/system-pp502x.c')
-rw-r--r-- | firmware/target/arm/system-pp502x.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c index 9bedb0e42c..700686b427 100644 --- a/firmware/target/arm/system-pp502x.c +++ b/firmware/target/arm/system-pp502x.c | |||
@@ -42,6 +42,10 @@ extern void SERIAL0(void); | |||
42 | static struct corelock cpufreq_cl SHAREDBSS_ATTR; | 42 | static struct corelock cpufreq_cl SHAREDBSS_ATTR; |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #if defined(IPOD_VIDEO) && !defined(BOOTLOADER) | ||
46 | unsigned char probed_ramsize; | ||
47 | #endif | ||
48 | |||
45 | void __attribute__((interrupt("IRQ"))) irq_handler(void) | 49 | void __attribute__((interrupt("IRQ"))) irq_handler(void) |
46 | { | 50 | { |
47 | if(CURRENT_CORE == CPU) | 51 | if(CURRENT_CORE == CPU) |
@@ -518,6 +522,13 @@ void system_init(void) | |||
518 | #else | 522 | #else |
519 | pp_set_cpu_frequency(CPUFREQ_MAX); | 523 | pp_set_cpu_frequency(CPUFREQ_MAX); |
520 | #endif | 524 | #endif |
525 | |||
526 | #if defined(IPOD_VIDEO) | ||
527 | /* crt0-pp.S wrote the ram size to the last byte of the first 32MB | ||
528 | ram bank. See the comment there for how we determine it. */ | ||
529 | volatile unsigned char *end32 = (volatile unsigned char *)0x01ffffff; | ||
530 | probed_ramsize = *end32; | ||
531 | #endif | ||
521 | } | 532 | } |
522 | 533 | ||
523 | init_cache(); | 534 | init_cache(); |