Changeset 005384ad in mainline for arch/ia32/src/fpu_context.c


Ignore:
Timestamp:
2005-09-04T00:19:47Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3396f59
Parents:
5eb1379
Message:

Fixed some stupid typos.

File:
1 edited

Legend:

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

    r5eb1379 r005384ad  
    3939void fpu_context_restore(fpu_context_t *fctx)
    4040{
    41         if(THREAD==CPU->fpu_owner) {reset_TS_flag(); }
    42         else
    43         {
     41        if (THREAD==CPU->fpu_owner)
     42                reset_TS_flag();
     43        else {
    4444                set_TS_flag();
    45                 if((CPU->fpu_owner)!=NULL)(CPU->fpu_owner)->fpu_context_engaged=1;
     45                if (CPU->fpu_owner != NULL)
     46                        (CPU->fpu_owner)->fpu_context_engaged=1;
    4647        }
    4748}
     
    5051void fpu_lazy_context_save(fpu_context_t *fctx)
    5152{
     53        __asm__ volatile (
     54                "fnsave %0"
     55                : "=m"(*fctx)
     56                );
    5257        return;
    53         __asm__ (
    54                 "fnsave %0"
    55                 : "=m"(fctx)
    56                 );
    5758}
    5859
    5960void fpu_lazy_context_restore(fpu_context_t *fctx)
    6061{
     62        __asm__ volatile (
     63                "frstor %0"
     64                : "=m"(*fctx)
     65                );
    6166        return;
    62         __asm__ (
    63                 "frstor %0"
    64                 : "=m"(fctx)
    65                 );
    6667}
    6768
    6869void fpu_init(void)
    6970{
    70         asm(
     71        __asm__ volatile (
    7172                "fninit;"
    7273        );
Note: See TracChangeset for help on using the changeset viewer.