summaryrefslogtreecommitdiff
path: root/cpu/mpc86xx/interrupts.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-08-02 00:48:45 +0200
committerWolfgang Denk <wd@denx.de>2007-08-02 00:48:45 +0200
commitcdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197 (patch)
treed171af231adccfc25a395c6b656733f2f549774d /cpu/mpc86xx/interrupts.c
parent5dc210dec5bace98a50b6ba905347890091a9bb0 (diff)
downloadu-boot-imx-cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197.zip
u-boot-imx-cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197.tar.gz
u-boot-imx-cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197.tar.bz2
Fix build errors and warnings / code cleanup.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/mpc86xx/interrupts.c')
-rw-r--r--cpu/mpc86xx/interrupts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu/mpc86xx/interrupts.c b/cpu/mpc86xx/interrupts.c
index 49820bb..08e0675 100644
--- a/cpu/mpc86xx/interrupts.c
+++ b/cpu/mpc86xx/interrupts.c
@@ -71,7 +71,7 @@ static __inline__ void set_dec(unsigned long val)
}
/* interrupt is not supported yet */
-int interrupt_init_cpu(unsigned *decrementer_count)
+int interrupt_init_cpu(unsigned long *decrementer_count)
{
return 0;
}
@@ -107,7 +107,7 @@ int interrupt_init(void)
return ret;
decrementer_count = get_tbclk() / CFG_HZ;
- debug("interrupt init: tbclk() = %d MHz, decrementer_count = %d\n",
+ debug("interrupt init: tbclk() = %d MHz, decrementer_count = %ld\n",
(get_tbclk() / 1000000),
decrementer_count);
@@ -158,7 +158,7 @@ void timer_interrupt(struct pt_regs *regs)
timestamp++;
- ppcDcbf(&timestamp);
+ ppcDcbf((unsigned long)&timestamp);
/* Restore Decrementer Count */
set_dec(decrementer_count);