From 59ebdf8e7367e646874c6f6ee42a303e54f4d4ba Mon Sep 17 00:00:00 2001 From: pointer-to-bios Date: Wed, 24 Jan 2024 01:15:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=8F=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E5=86=85=E6=A0=B8=E9=95=9C=E5=83=8F=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Makefile | 3 ++- src/kernel/arch/x86_64/entry.s | 4 ---- src/metaverse.lds | 6 ------ 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Makefile b/src/Makefile index fe78fe8..9ff80e0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -33,7 +33,7 @@ ifdef release endif ifeq (${ARCH},x86_64) - RSCFLAGS := ${RSCFLAGS} -C target-feature=-sse,-avx + RSCFLAGS := ${RSCFLAGS} -C target-feature=-sse endif RUSTLIB_PATH = ../rustlib/${ARCH}/lib @@ -54,6 +54,7 @@ metaverse.elf: kernel libk rust metaverse.lds @echo -e "\e[1;33mld\e[0m \e[1;32m$@\e[0m \e[34m<--\e[0m \e[32m${SUBOBJS}\e[0m" @ld -T metaverse.lds -Map=metaverse.map -unresolved-symbols=ignore-all -o $@ ${SUBOBJS} ${RUST_LIBS} \ 2>&1 | "${SOURCE}/colorize" "warning:=yellow" "error:=red" "ld=lyellow" + @strip $@ .PHONY: kernel libk all clear postproc rust diff --git a/src/kernel/arch/x86_64/entry.s b/src/kernel/arch/x86_64/entry.s index c259f4a..04f86fd 100644 --- a/src/kernel/arch/x86_64/entry.s +++ b/src/kernel/arch/x86_64/entry.s @@ -39,10 +39,6 @@ multiboot2_header: dd 8 multiboot2_header_end: - section .kstack -kstack: - resb 0x1000000 - 0x400000 - section .kend global kend kend: diff --git a/src/metaverse.lds b/src/metaverse.lds index c1e7568..3ef868d 100644 --- a/src/metaverse.lds +++ b/src/metaverse.lds @@ -17,12 +17,6 @@ SECTIONS { { *(.cpumeta) } - . = 4M; - ..kstack : - { - kstack = .; - *(.kstack) - } . = 16M; .text : {