From 8b061252c4359aa960ae31c0a4b2ba92f6771017 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Sat, 3 Mar 2007 17:25:20 +0000 Subject: Replace some inl/outl with register #define's instead. Also tidy up pp5020.h so that it's in increasing address order. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12574 a1c6a512-1295-4272-9138-f99709370657 --- firmware/system.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/system.c') diff --git a/firmware/system.c b/firmware/system.c index 463eec5053..a86d945093 100644 --- a/firmware/system.c +++ b/firmware/system.c @@ -648,7 +648,7 @@ void irq(void) unsigned int current_core(void) { - if(((*(volatile unsigned long *)(0x60000000)) & 0xff) == 0x55) + if((PROCESSOR_ID & 0xff) == PROC_ID_CPU) { return CPU; } @@ -670,7 +670,7 @@ static void ipod_init_cache(void) unsigned i; /* cache init mode? */ - outl(0x4, 0x6000C000); + CACHE_CTL = CACHE_INIT; /* PP5002 has 8KB cache */ for (i = 0xf0004000; i < 0xf0006000; i += 16) { @@ -681,7 +681,7 @@ static void ipod_init_cache(void) outl(0x3fc0, 0xf000f044); /* enable cache */ - outl(0x1, 0x6000C000); + CACHE_CTL = CACHE_ENABLE; for (i = 0x10000000; i < 0x10002000; i += 16) inb(i); -- cgit v1.2.3