1
0
Fork 0
forked from len0rd/rockbox

Fix some very probable typo's.

CPU_INT_STAT is at 0x60004000, not 0x64004000.
CPU_HI_INT_STAT is at 0x60004100, not 0x64004100.
Fix wrong IRQ CLR addresses being used by system_init().


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13238 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2007-04-22 11:30:32 +00:00
parent 9d3694ced6
commit 0a643b8d90
2 changed files with 9 additions and 9 deletions

View file

@ -40,7 +40,7 @@
#define COP_REPLY (*(volatile unsigned long *)(0x6000100c)) #define COP_REPLY (*(volatile unsigned long *)(0x6000100c))
/* Interrupts */ /* Interrupts */
#define CPU_INT_STAT (*(volatile unsigned long*)(0x64004000)) #define CPU_INT_STAT (*(volatile unsigned long*)(0x60004000))
#define COP_INT_STAT (*(volatile unsigned long*)(0x60004004)) #define COP_INT_STAT (*(volatile unsigned long*)(0x60004004))
#define CPU_FIQ_STAT (*(volatile unsigned long*)(0x60004008)) #define CPU_FIQ_STAT (*(volatile unsigned long*)(0x60004008))
#define COP_FIQ_STAT (*(volatile unsigned long*)(0x6000400c)) #define COP_FIQ_STAT (*(volatile unsigned long*)(0x6000400c))
@ -60,7 +60,7 @@
#define COP_INT_CLR (*(volatile unsigned long*)(0x60004038)) #define COP_INT_CLR (*(volatile unsigned long*)(0x60004038))
#define COP_INT_PRIORITY (*(volatile unsigned long*)(0x6000403c)) #define COP_INT_PRIORITY (*(volatile unsigned long*)(0x6000403c))
#define CPU_HI_INT_STAT (*(volatile unsigned long*)(0x64004100)) #define CPU_HI_INT_STAT (*(volatile unsigned long*)(0x60004100))
#define COP_HI_INT_STAT (*(volatile unsigned long*)(0x60004104)) #define COP_HI_INT_STAT (*(volatile unsigned long*)(0x60004104))
#define CPU_HI_FIQ_STAT (*(volatile unsigned long*)(0x60004108)) #define CPU_HI_FIQ_STAT (*(volatile unsigned long*)(0x60004108))
#define COP_HI_FIQ_STAT (*(volatile unsigned long*)(0x6000410c)) #define COP_HI_FIQ_STAT (*(volatile unsigned long*)(0x6000410c))

View file

@ -395,13 +395,13 @@ void system_init(void)
ipod_hw_rev = (*((volatile unsigned long*)(0x01fffffc))); ipod_hw_rev = (*((volatile unsigned long*)(0x01fffffc)));
/* disable all irqs */ /* disable all irqs */
outl(-1, 0x60001138); COP_HI_INT_CLR = -1;
outl(-1, 0x60001128); CPU_HI_INT_CLR = -1;
outl(-1, 0x6000111c); HI_INT_FORCED_CLR = -1;
outl(-1, 0x60001038); COP_INT_CLR = -1;
outl(-1, 0x60001028); CPU_INT_CLR = -1;
outl(-1, 0x6000101c); INT_FORCED_CLR = -1;
# if NUM_CORES > 1 && defined(HAVE_ADJUSTABLE_CPU_FREQ) # if NUM_CORES > 1 && defined(HAVE_ADJUSTABLE_CPU_FREQ)
spinlock_init(&boostctrl_mtx); spinlock_init(&boostctrl_mtx);