Changeset aa4e8d7 in mainline for arch/ia32/src/context.s


Ignore:
Timestamp:
2005-05-08T13:59:59Z (20 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be50915
Parents:
e9b9e12
Message:

Remove fpu_context pointer from context_t.
Add fpu_context statically to thread_t.
Two functions for saving and restoring FPU context on lazy switch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/context.s

    re9b9e12 raa4e8d7  
    3131.global context_save
    3232.global context_restore
     33
    3334
    3435#
     
    7475        xorl %eax,%eax          # context_restore returns 0
    7576        ret
     77
     78
     79.global fpu_context_save
     80fpu_context_save:
     81    ret
     82.global fpu_context_restore
     83fpu_context_restore:
     84    ret
     85
     86.global fpu_lazy_context_save
     87    mov 4(%esp),%eax;
     88    fxsave (%eax)
     89    xor %eax,%eax;
     90    ret;
     91.global fpu_lazy_context_restore
     92    mov 4(%esp),%eax;
     93    fxrstor (%eax)
     94    xor %eax,%eax;
     95    ret;
     96
Note: See TracChangeset for help on using the changeset viewer.