diff options
| author | Tianhao Wang <shrik3@mailbox.org> | 2024-06-04 17:50:10 +0200 |
|---|---|---|
| committer | Tianhao Wang <shrik3@mailbox.org> | 2024-06-11 15:17:12 +0200 |
| commit | 4bce609d2a0145e70f44227636a68348e9b23cf9 (patch) | |
| tree | 8c753a99644172f0fd3bb5d382ae1b7790b137e6 /Makefile | |
| parent | f4b50dd826b81295dc9628b655fc5f360445230b (diff) | |
mm: fully map the kernel to high memory
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -19,9 +19,10 @@ ARCH = x86_64 ASM = nasm ASMOBJFORMAT = elf64 ASMFLAGS = -w-zeroing -LINKER_SCRIPT = ./defs/$(ARCH)-linker.ld +LINKER_SCRIPT = ./defs/$(ARCH)-hm-linker.ld CARGO_XBUILD_TARGET = ./defs/$(ARCH)-rustubs.json CARGO_XBUILD_FLAGS = +RUSTC_FLAGS := -C code-model=large # ---------- No need to edit below this line -------------- # ---------- If you have to, something is wrong ----------- LDFLAGS = -no-warn-rwx-segment -static -e startup @@ -65,7 +66,7 @@ $(BUILD)/_%.o : %.s | $(BUILD) # define this, the linker will have troubles, especially when we use a "no_std" build rust_kernel: check @echo "---BUILDING RUST KERNEL---" - @cargo xbuild --target $(CARGO_XBUILD_TARGET) $(CARGO_XBUILD_FLAGS) + @RUSTFLAGS="$(RUSTC_FLAGS)" cargo xbuild --target $(CARGO_XBUILD_TARGET) $(CARGO_XBUILD_FLAGS) # need nasm # TODO make this arch dependent |
