Changeset 54ca3523 in mainline for arch/ia32/src/interrupt.c


Ignore:
Timestamp:
2005-05-20T17:04:55Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0cb0a72
Parents:
c01bd280
Message:

FPU work.
FPU code cleanup, add/fix copyright notices where needed.
Fix PI calculation to use double n instead of int n.
Make FPU test #1 even more stressing.

Re-enable O3 again.
Revert Makefile.config not to compile in any tests.

File:
1 edited

Legend:

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

    rc01bd280 r54ca3523  
    9797void nm_fault(__u8 n, __u32 stack[])
    9898{
    99 
    100 //      printf("-1\n");       
    10199        reset_TS_flag();
    102100        if ((CPU->fpu_owner)!=NULL)
    103101        { 
    104 //              printf("tid:%d \n", THREAD->tid);
    105 //              printf("owner:%d\n", (CPU->fpu_owner)->tid);
    106102                fpu_lazy_context_save(&((CPU->fpu_owner)->saved_fpu_context));
    107 
    108 //              printf("owner 2\n");
    109                 (CPU->fpu_owner)->fpu_context_engaged=0; /* Enables migration */
    110 //              printf("owner 3\n");       
    111 
     103                (CPU->fpu_owner)->fpu_context_engaged=0; /* don't prevent migration */
    112104        }
    113 //      printf("0\n");
    114105        if(THREAD->fpu_context_exists) fpu_lazy_context_restore(&(THREAD->saved_fpu_context));
    115106        else {fpu_init();THREAD->fpu_context_exists=1;}
    116 //      printf("1\n");
    117107        CPU->fpu_owner=THREAD;
    118 //      printf("2\n");
    119        
    120 //      printf("3\n"); 
    121 //      panic("#NM fault\n");
    122108}
    123109
Note: See TracChangeset for help on using the changeset viewer.