summaryrefslogtreecommitdiffstats
path: root/cpu
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
parent5dc210dec5bace98a50b6ba905347890091a9bb0 (diff)
downloadtalos-obmc-uboot-cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197.tar.gz
talos-obmc-uboot-cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197.zip
Fix build errors and warnings / code cleanup.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu')
-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 49820bbd81..08e0675fee 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);
OpenPOWER on IntegriCloud