Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 325 → Rev 326

/SPARTAN/trunk/arch/amd64/Makefile.inc
21,12 → 21,11
endif
 
 
CPPFLAGS=$(DEFS) -nostdinc -I../include
CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
CFLAGS=$(DEFS) -nostdlib -fno-builtin -fno-unwind-tables -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
LFLAGS=-M
 
../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in
$(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
$(CC) $(CFLAGS) -C -E -x c $< | grep -v "^\#" > $@
 
arch_sources = arch/dummy.s \
arch/fpu_context.c \
/SPARTAN/trunk/arch/amd64/src/fpu_context.c
45,7 → 45,7
 
void fpu_context_restore(fpu_context_t *fctx)
{
/* TODO: We need malloc that allocates on 16-byte boundary !! */
/* Align on 16-byte boundary */
if (((__u64)fctx) & 0xf)
fctx = (fpu_context_t *)((((__u64)fctx) | 0xf) + 1);
__asm__ volatile (
56,6 → 56,7
 
void fpu_init(void)
{
/* TODO: Zero all SSE, MMX etc. registers */
__asm__ volatile (
"fninit;"
);