Changeset 9c926f3 in mainline for arch/powerpc/src/fpu_context.c


Ignore:
Timestamp:
2005-05-08T23:47:00Z (20 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
79f1f38f
Parents:
0c47db1
Message:

Begin support for FPU context switching on platforms which can't do it in lazy way.

File:
1 edited

Legend:

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

    r0c47db1 r9c926f3  
    3131#include <fpu_context.h>
    3232
    33 void fpu_context_save(void)
     33void fpu_context_save(fpu_context_t *fctx)
    3434{
    3535}
    3636
    3737
    38 void fpu_context_restore()
     38void fpu_context_restore(fpu_context_t *fctx)
    3939{
    4040}
    4141
    4242
    43 void fpu_lazy_context_save()
     43void fpu_lazy_context_save(fpu_context_t *fctx)
    4444{
    45 /*
    46         pushl %eax
    47         mov 8(%esp),%eax
    48         fxsave (%eax)
    49         popl %eax
    50         ret
    51 */     
    5245}
    5346
    54 void fpu_lazy_context_restore()
     47void fpu_lazy_context_restore(fpu_context_t *fctx)
    5548{
    56 /*
    57         pushl %eax
    58         mov 8(%esp),%eax
    59         fxrstor (%eax)
    60         popl %eax
    61         ret
    62 */     
     49
    6350}
Note: See TracChangeset for help on using the changeset viewer.