Changeset b49f4ae in mainline for arch/ia32/src/fpu_context.c


Ignore:
Timestamp:
2005-09-06T09:56:26Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50a4e25
Parents:
a5d1331
Message:

Added architecture independent hooks for fpu lazy context switching.
It is enabled by defining FPU_LAZY

File:
1 edited

Legend:

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

    ra5d1331 rb49f4ae  
    3434void fpu_context_save(fpu_context_t *fctx)
    3535{
    36 }
    37 
    38 
    39 void fpu_context_restore(fpu_context_t *fctx)
    40 {
    41         if (THREAD==CPU->fpu_owner)
    42                 reset_TS_flag();
    43         else {
    44                 set_TS_flag();
    45                 if (CPU->fpu_owner != NULL)
    46                         (CPU->fpu_owner)->fpu_context_engaged=1;
    47         }
    48 }
    49 
    50 
    51 void fpu_lazy_context_save(fpu_context_t *fctx)
    52 {
    5336        __asm__ volatile (
    5437                "fnsave %0"
     
    5740}
    5841
    59 void fpu_lazy_context_restore(fpu_context_t *fctx)
     42
     43void fpu_context_restore(fpu_context_t *fctx)
    6044{
    6145        __asm__ volatile (
Note: See TracChangeset for help on using the changeset viewer.