Changeset 09c18f7 in mainline
- Timestamp:
- 2006-03-03T11:52:46Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd21922
- Parents:
- f76fed4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/scheduler.c
rf76fed4 r09c18f7 97 97 void scheduler_fpu_lazy_request(void) 98 98 { 99 restart: 99 100 fpu_enable(); 100 101 spinlock_lock(&CPU->lock); … … 107 108 CPU->fpu_owner->fpu_context_engaged=0; 108 109 spinlock_unlock(&CPU->fpu_owner->lock); 110 CPU->fpu_owner = NULL; 109 111 } 110 112 … … 117 119 /* Might sleep */ 118 120 spinlock_unlock(&THREAD->lock); 121 spinlock_unlock(&CPU->lock); 119 122 THREAD->saved_fpu_context = slab_alloc(fpu_context_slab, 120 123 0); 121 spinlock_lock(&THREAD->lock); 124 /* We may have switched CPUs during slab_alloc */ 125 goto restart; 122 126 } 123 127 fpu_init();
Note:
See TracChangeset
for help on using the changeset viewer.