diff options
author | cognet <cognet@FreeBSD.org> | 2006-06-12 22:58:50 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2006-06-12 22:58:50 +0000 |
commit | 5dcde5a0f3d635cf4b612a54a5446349e01ef3a5 (patch) | |
tree | 7e3daccc8b69c0e3ca895ce43f63acdaebb9b857 /sys/conf/Makefile.arm | |
parent | e928591f2a68df33d466de1b5fdb769332dc30b0 (diff) | |
download | FreeBSD-src-5dcde5a0f3d635cf4b612a54a5446349e01ef3a5.zip FreeBSD-src-5dcde5a0f3d635cf4b612a54a5446349e01ef3a5.tar.gz |
MFp4:
- Try hard to calculate a safe sp, so that the stack doesn't get smashed
while uncompressing or relocating the kernel.
- Bring in code needed to calculate the cacheline size etc, needed for
arm9_idcache_wbinv_all.
Diffstat (limited to 'sys/conf/Makefile.arm')
-rw-r--r-- | sys/conf/Makefile.arm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 9a8ea46..db02b3c 100644 --- a/sys/conf/Makefile.arm +++ b/sys/conf/Makefile.arm @@ -62,7 +62,7 @@ SYSTEM_LD_TAIL +=;sed s/" + SIZEOF_HEADERS"// ldscript.$M\ FILES_CPU_FUNC = $S/$M/$M/cpufunc_asm_arm7tdmi.S \ $S/$M/$M/cpufunc_asm_arm8.S $S/$M/$M/cpufunc_asm_arm9.S \ $S/$M/$M/cpufunc_asm_sa1.S $S/$M/$M/cpufunc_asm_arm10.S \ - $S/$M/$M/cpufunc_asm_xscale.S + $S/$M/$M/cpufunc_asm_xscale.S $S/$M/$M/cpufunc_asm.S trampoline: ${KERNEL_KO}.tramp ${KERNEL_KO}.tramp: ${KERNEL_KO} echo "#define KERNNAME \"${KERNEL_KO}.tmp\"" >opt_kernname.h @@ -71,6 +71,8 @@ ${KERNEL_KO}.tramp: ${KERNEL_KO} ldscript.$M.tramp.noheader ${OBJCOPY} --strip-symbol '$$d' --strip-symbol '$$a' \ -g --strip-symbol '$$t' ${FULLKERNEL} ${KERNEL_KO}.tmp + eval $$(stat -s ${KERNEL_KO}.tmp) && \ + echo "#define KERNSIZE $$st_size" >>opt_kernname.h ${CC} -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.$M.tramp \ $S/$M/$M/elf_trampoline.c $S/$M/$M/inckern.S -o ${KERNEL_KO}.tramp ${CC} -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.$M.tramp.noheader \ |