diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-04-13 20:55:48 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-04-13 20:55:48 +0000 |
commit | d95c39072ace1a7aeaad3ee49ed668399b4862bd (patch) | |
tree | 7f8c8e41e5e793daa64051f153bbbd52ccbe8fc9 /firmware/target/arm/gigabeat/meg-fx/system-target.h | |
parent | e10f455fbd3149a034e35d30be333f958d773d92 (diff) | |
download | rockbox-d95c39072ace1a7aeaad3ee49ed668399b4862bd.tar.gz rockbox-d95c39072ace1a7aeaad3ee49ed668399b4862bd.zip |
Portal Player: Add invalidate_icache and flush_icache. Flush the cache on the core for newborn threads. In doing so, move more ARM stuff to the target tree and organize it to make a clean job of it. If anything isn't appropriate for some particular device give a hollar or even just fix it by some added #ifdefing. I was informed that the PP targets are register compatible so I'm going off that advice. The Sansa likes it though.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13144 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/gigabeat/meg-fx/system-target.h')
-rw-r--r-- | firmware/target/arm/gigabeat/meg-fx/system-target.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/firmware/target/arm/gigabeat/meg-fx/system-target.h b/firmware/target/arm/gigabeat/meg-fx/system-target.h deleted file mode 100644 index e5d15d643e..0000000000 --- a/firmware/target/arm/gigabeat/meg-fx/system-target.h +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Greg White | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #include "mmu-meg-fx.h" | ||
21 | |||
22 | static inline void invalidate_icache(void) | ||
23 | { | ||
24 | clean_dcache(); | ||
25 | asm volatile( | ||
26 | "mov r0, #0 \n" | ||
27 | "mcr p15, 0, r0, c7, c5, 0 \n" | ||
28 | : : : "r0" | ||
29 | ); | ||
30 | } | ||
31 | |||