Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/fpu_context.c

    r9d58539 r24c394b  
    4141        asm volatile (
    4242                "fxsave %[fctx]\n"
    43                 : [fctx] "=m" (*fctx)
     43                : [fctx] "=m" (fctx->fpu)
    4444        );
    4545}
     
    5050        asm volatile (
    5151                "fxrstor %[fctx]\n"
    52                 : [fctx] "=m" (*fctx)
     52                : [fctx] "=m" (fctx->fpu)
    5353        );
    5454}
     
    5757{
    5858        /* TODO: Zero all SSE, MMX etc. registers */
     59        /* Default value of SCR register is 0x1f80,
     60         * it masks all FPU exceptions*/
    5961        asm volatile (
    6062                "fninit\n"
Note: See TracChangeset for help on using the changeset viewer.