diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-01-04 13:58:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-01-04 13:58:47 +0000 |
commit | 1dfc188ef534a796767a1aa444f9558eeda644d8 (patch) | |
tree | 2f2980a2e70f95305a7ec50a33bb93055f3c0ea4 /c/src/exec/score/cpu/i386/cpu.c | |
parent | Added shared version of this file. (diff) | |
download | rtems-1dfc188ef534a796767a1aa444f9558eeda644d8.tar.bz2 |
Removed unitialized variable warning.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/cpu/i386/cpu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/c/src/exec/score/cpu/i386/cpu.c b/c/src/exec/score/cpu/i386/cpu.c index 7ee7e6814c..b194fe2c40 100644 --- a/c/src/exec/score/cpu/i386/cpu.c +++ b/c/src/exec/score/cpu/i386/cpu.c @@ -91,7 +91,7 @@ void _CPU_Thread_Idle_body () void _defaultExcHandler (CPU_Exception_frame *ctx) { - unsigned int faultAddr; + unsigned int faultAddr = 0; printk("----------------------------------------------------------\n"); printk("Exception %d caught at PC %x by thread %d\n", ctx->idtIndex, @@ -110,9 +110,8 @@ void _defaultExcHandler (CPU_Exception_frame *ctx) printk("----------------------------------------------------------\n"); if (ctx->idtIndex == I386_EXCEPTION_PAGE_FAULT){ faultAddr = i386_get_cr2(); - printk("Page fault linear address (CR2) = %x\n", - faultAddr); - printk("----------------------------------------------------------\n\n"); + printk("Page fault linear address (CR2) = %x\n", faultAddr); + printk("----------------------------------------------------------\n\n"); } if (_ISR_Nest_level > 0) { /* |