/shark/trunk/oslib/ll/i386/mem.h |
---|
136,6 → 136,7 |
} |
#define __HAVE_ARCH_MEMCPY |
#define memcpy(t, f, n) \ |
(__builtin_constant_p(n) ? \ |
__constant_memcpy((t),(f),(n)) : \ |
/shark/trunk/oslib/libc/reboot.c |
---|
70,6 → 70,6 |
for(j = 0; j < 100000 ; j++); |
} |
/* That didn't work - force a triple fault.. */ |
__asm__ __volatile__("lidt %0": :"m" (no_idt)); |
__asm__ __volatile__("int3"); |
// __asm__ __volatile__("lidt %0": :"m" (no_idt)); |
// __asm__ __volatile__("int3"); |
} |
/shark/trunk/oslib/config.mk |
---|
40,7 → 40,7 |
CFG_OPT += -D__OLD_TRACER__ |
endif |
C_OPT = -Wall -O -fno-builtin -nostdinc $(CFG_OPT) -DMAIN=__kernel_init__ -I$(INCL) |
C_OPT = -Wall -O -fno-builtin -nostdinc -Wno-attributes -Wno-pointer-sign -minline-all-stringops $(CFG_OPT) -DMAIN=__kernel_init__ -I$(INCL) |
ASM_OPT = -x assembler-with-cpp $(CFG_OPT) -I$(INCL) |
LINK_OPT = -Bstatic -Ttext $(MEM_START) -s -nostartfiles -nostdlib -L$(LIB_PATH) |