Changeset 87be9cfb in mainline


Ignore:
Timestamp:
2005-05-17T18:40:19Z (20 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7f1bfce
Parents:
eb43679
Message:

Fix page fault caused by dereferencing NULL pointer.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/fpu_context.c

    reb43679 r87be9cfb  
    4242{
    4343        if(THREAD==CPU->fpu_owner) {reset_TS_flag(); }
    44         else {set_TS_flag(); (CPU->fpu_owner)->fpu_context_engaged=1;}
     44        else
     45        {
     46                set_TS_flag();
     47                if((CPU->fpu_owner)!=NULL)(CPU->fpu_owner)->fpu_context_engaged=1;
     48        }
    4549}
    4650
  • src/Makefile.config

    reb43679 r87be9cfb  
    1 #ARCH=ia32
     1ARCH=ia32
    22#ARCH=mips
    3 ARCH=ia64
     3#ARCH=ia64
    44#ARCH=powerpc
    55#ARCH=amd64
Note: See TracChangeset for help on using the changeset viewer.