diff options
Diffstat (limited to 'firmware/target/arm/system-pp5002.c')
-rw-r--r-- | firmware/target/arm/system-pp5002.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/firmware/target/arm/system-pp5002.c b/firmware/target/arm/system-pp5002.c index 04e052fa83..3186d3739a 100644 --- a/firmware/target/arm/system-pp5002.c +++ b/firmware/target/arm/system-pp5002.c | |||
@@ -54,15 +54,8 @@ void __attribute__((interrupt("IRQ"))) irq_handler(void) | |||
54 | 54 | ||
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | /* TODO: The following two function have been lifted straight from IPL, and | ||
58 | hence have a lot of numeric addresses used straight. I'd like to use | ||
59 | #defines for these, but don't know what most of them are for or even what | ||
60 | they should be named. Because of this I also have no way of knowing how | ||
61 | to extend the funtions to do alternate cache configurations and/or | ||
62 | some other CPU frequency scaling. */ | ||
63 | |||
64 | #ifndef BOOTLOADER | 57 | #ifndef BOOTLOADER |
65 | void ICODE_ATTR __attribute__((naked)) cpucache_commit(void) | 58 | void ICODE_ATTR __attribute__((naked)) commit_dcache(void) |
66 | { | 59 | { |
67 | asm volatile( | 60 | asm volatile( |
68 | "mov r0, #0xf0000000 \n" | 61 | "mov r0, #0xf0000000 \n" |
@@ -76,9 +69,8 @@ void ICODE_ATTR __attribute__((naked)) cpucache_commit(void) | |||
76 | "bx lr \n" | 69 | "bx lr \n" |
77 | ); | 70 | ); |
78 | } | 71 | } |
79 | void cpucache_flush(void) __attribute__((alias("cpucache_commit"))); | ||
80 | 72 | ||
81 | void ICODE_ATTR __attribute__((naked)) cpucache_commit_discard(void) | 73 | void ICODE_ATTR __attribute__((naked)) commit_discard_idcache(void) |
82 | { | 74 | { |
83 | asm volatile( | 75 | asm volatile( |
84 | "mov r0, #0xf0000000 \n" | 76 | "mov r0, #0xf0000000 \n" |
@@ -94,7 +86,8 @@ void ICODE_ATTR __attribute__((naked)) cpucache_commit_discard(void) | |||
94 | "bx lr \n" | 86 | "bx lr \n" |
95 | ); | 87 | ); |
96 | } | 88 | } |
97 | void cpucache_invalidate(void) __attribute__((alias("cpucache_commit_discard"))); | 89 | |
90 | void commit_discard_dcache(void) __attribute__((alias("commit_discard_idcache"))); | ||
98 | 91 | ||
99 | static void ipod_init_cache(void) | 92 | static void ipod_init_cache(void) |
100 | { | 93 | { |