Changeset aa4e8d7 in mainline for src/main/main.c


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
  • src/main/main.c

    re9b9e12 raa4e8d7  
    9292        config.kernel_size = hardcoded_ktext_size + hardcoded_kdata_size + CONFIG_HEAP_SIZE + CONFIG_STACK_SIZE;
    9393
    94         context_save(&ctx);
     94        context_save(&ctx); /* There is no nead to save FPU context */
    9595        ctx.sp = config.base + config.kernel_size - 8;
    9696        ctx.pc = (__address) main_bsp_separated_stack;
    97         context_restore(&ctx);
     97        context_restore(&ctx); /* There is no nead to load FPU context */
    9898        /* not reached */
    9999}
     
    193193        CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-8];
    194194        CPU->saved_context.pc = (__address) main_ap_separated_stack;
    195         context_restore(&CPU->saved_context);
     195        context_restore(&CPU->saved_context); /* There is no nead to load FPU context */
    196196        /* not reached */
    197197}
Note: See TracChangeset for help on using the changeset viewer.