Changeset ffc277e in mainline for arch/amd64


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.

Location:
arch/amd64
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/Makefile.inc

    rb02e5d1 rffc277e  
    2222
    2323
    24 CPPFLAGS=$(DEFS) -nostdinc -I../include
    25 CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
     24CFLAGS=$(DEFS) -nostdlib -fno-builtin -fno-unwind-tables -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
    2625LFLAGS=-M
    2726
    2827../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in
    29         $(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
     28        $(CC) $(CFLAGS) -C -E -x c $< | grep -v "^\#" > $@
    3029
    3130arch_sources = arch/dummy.s \
  • 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.