Changeset ffc277e in mainline for arch/amd64/src/fpu_context.c


Ignore:
Timestamp:
2005-09-10T00:52:13Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3a6c8e5
Parents:
b02e5d1
Message:

Cleanup of makefiles to have common options in one main makefile.

Add simple build process for different simulators for MIPS.
Added FPU context & lazy FPU context switching to MIPS.
Cleanup of MIPS linker script.
Moved MIPS kernel above 1MB. Not tested on real machine yet, but it might help.

There is something broken with gcc inlined memcpy (either simulator or gcc), it is disabled on BigEndian mips now.

File:
1 edited

Legend:

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

    rb02e5d1 rffc277e  
    4646void fpu_context_restore(fpu_context_t *fctx)
    4747{
    48         /* TODO: We need malloc that allocates on 16-byte boundary !! */
     48        /* Align on 16-byte boundary */
    4949        if (((__u64)fctx) & 0xf)
    5050                fctx = (fpu_context_t *)((((__u64)fctx) | 0xf) + 1);
     
    5757void fpu_init(void)
    5858{
     59        /* TODO: Zero all SSE, MMX etc. registers */
    5960        __asm__ volatile (
    6061                "fninit;"
Note: See TracChangeset for help on using the changeset viewer.