Changeset 54ca3523 in mainline for arch/ia32/src/interrupt.c
- Timestamp:
- 2005-05-20T17:04:55Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0cb0a72
- Parents:
- c01bd280
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/interrupt.c
rc01bd280 r54ca3523 97 97 void nm_fault(__u8 n, __u32 stack[]) 98 98 { 99 100 // printf("-1\n");101 99 reset_TS_flag(); 102 100 if ((CPU->fpu_owner)!=NULL) 103 101 { 104 // printf("tid:%d \n", THREAD->tid);105 // printf("owner:%d\n", (CPU->fpu_owner)->tid);106 102 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 */ 112 104 } 113 // printf("0\n");114 105 if(THREAD->fpu_context_exists) fpu_lazy_context_restore(&(THREAD->saved_fpu_context)); 115 106 else {fpu_init();THREAD->fpu_context_exists=1;} 116 // printf("1\n");117 107 CPU->fpu_owner=THREAD; 118 // printf("2\n");119 120 // printf("3\n");121 // panic("#NM fault\n");122 108 } 123 109
Note:
See TracChangeset
for help on using the changeset viewer.