We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae88282 commit 368fb82Copy full SHA for 368fb82
1 file changed
.cargo/config.toml
@@ -14,11 +14,17 @@ rustflags = [
14
linker = "ld.lld"
15
rustflags = ["-C", "link-arg=-nostartfiles"]
16
17
+# Custom target for x86_64 kernel with higher-half memory layout
18
+# Used when building with --target kernel/x86_64-rint.json
19
[target.x86_64-rint]
20
rustflags = [
21
+ # Linker script for higher-half kernel (0xFFFFFFFF80000000)
22
"-C", "link-arg=-Tkernel/ld/link.ld",
23
+ # Static relocation model for bare-metal kernel
24
"-C", "relocation-model=static",
25
+ # Kernel code model required for high memory addresses (> 4GB)
26
"-C", "code-model=kernel",
27
+ # Disable red zone for interrupt safety
28
"-C", "no-redzone=yes",
29
]
30
0 commit comments