From: Graeme Russ Date: Sun, 23 Aug 2009 02:59:47 +0000 (+1000) Subject: i386: Fix regression introduced by commit 8c63d47651f7 X-Git-Tag: v2009.11-rc1~208 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea0c37798c3823fdd77edfffd27b20191f8ca1f0;p=kernel%2Fu-boot.git i386: Fix regression introduced by commit 8c63d47651f7 A local variable was deleted that should not have been Signed-off-by: Graeme Russ --- 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 #include #include +#include #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; }