diff options
author | Wolfgang Denk <wd@denx.de> | 2007-08-02 00:48:45 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-08-02 00:48:45 +0200 |
commit | cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197 (patch) | |
tree | d171af231adccfc25a395c6b656733f2f549774d /cpu/mpc86xx | |
parent | 5dc210dec5bace98a50b6ba905347890091a9bb0 (diff) | |
download | u-boot-cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197.tar.gz u-boot-cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197.tar.bz2 u-boot-cdd917a43da6fa7fc8f54a3cc9f420ce5ecf3197.zip |
Fix build errors and warnings / code cleanup.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/mpc86xx')
-rw-r--r-- | cpu/mpc86xx/interrupts.c | 6 |
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(×tamp); + ppcDcbf((unsigned long)×tamp); /* Restore Decrementer Count */ set_dec(decrementer_count); |