diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2009-08-23 12:59:47 +1000 |
---|---|---|
committer | Tom Rix <Tom.Rix@windriver.com> | 2009-10-03 09:04:09 -0500 |
commit | c214eaf35c037f752671a53a9988a05899767d8d (patch) | |
tree | 68b90616a809cc40722b44a5991c07928f80641c /lib_i386 | |
parent | ac28dcfe895e5fbfc51347e9e826c8f56796e551 (diff) | |
download | u-boot-imx-c214eaf35c037f752671a53a9988a05899767d8d.zip u-boot-imx-c214eaf35c037f752671a53a9988a05899767d8d.tar.gz u-boot-imx-c214eaf35c037f752671a53a9988a05899767d8d.tar.bz2 |
i386: Fix regression introduced by commit 8c63d47651f7
A local variable was deleted that should not have been
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'lib_i386')
-rw-r--r-- | lib_i386/pcat_timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib_i386/pcat_timer.c b/lib_i386/pcat_timer.c index e282f64..c351b23 100644 --- a/lib_i386/pcat_timer.c +++ b/lib_i386/pcat_timer.c @@ -25,10 +25,13 @@ #include <asm/io.h> #include <asm/i8254.h> #include <asm/ibmpc.h> +#include <asm/interrupt.h> #define TIMER0_VALUE 0x04aa /* 1kHz 1.9318MHz / 1000 */ #define TIMER2_VALUE 0x0a8e /* 440Hz */ +static int timer_init_done = 0; + int timer_init(void) { /* initialize timer 0 and 2 @@ -52,6 +55,8 @@ int timer_init(void) irq_install_handler (0, timer_isr, NULL); unmask_irq (0); + timer_init_done = 1; + return 0; } |