Changeset 1dfc188e in rtems


Ignore:
Timestamp:
Jan 4, 2000, 1:58:47 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a148f56
Parents:
afe8c1b6
Message:

Removed unitialized variable warning.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/i386/cpu.c

    rafe8c1b6 r1dfc188e  
    9292void _defaultExcHandler (CPU_Exception_frame *ctx)
    9393{
    94   unsigned int faultAddr;
     94  unsigned int faultAddr = 0;
    9595  printk("----------------------------------------------------------\n");
    9696  printk("Exception %d caught at PC %x by thread %d\n",
     
    111111  if (ctx->idtIndex == I386_EXCEPTION_PAGE_FAULT){
    112112    faultAddr = i386_get_cr2();
    113     printk("Page fault linear address (CR2) = %x\n",
    114            faultAddr);
    115   printk("----------------------------------------------------------\n\n");
     113    printk("Page fault linear address (CR2) = %x\n", faultAddr);
     114    printk("----------------------------------------------------------\n\n");
    116115  }
    117116 if (_ISR_Nest_level > 0) {
  • cpukit/score/cpu/i386/cpu.c

    rafe8c1b6 r1dfc188e  
    9292void _defaultExcHandler (CPU_Exception_frame *ctx)
    9393{
    94   unsigned int faultAddr;
     94  unsigned int faultAddr = 0;
    9595  printk("----------------------------------------------------------\n");
    9696  printk("Exception %d caught at PC %x by thread %d\n",
     
    111111  if (ctx->idtIndex == I386_EXCEPTION_PAGE_FAULT){
    112112    faultAddr = i386_get_cr2();
    113     printk("Page fault linear address (CR2) = %x\n",
    114            faultAddr);
    115   printk("----------------------------------------------------------\n\n");
     113    printk("Page fault linear address (CR2) = %x\n", faultAddr);
     114    printk("----------------------------------------------------------\n\n");
    116115  }
    117116 if (_ISR_Nest_level > 0) {
Note: See TracChangeset for help on using the changeset viewer.