refactored for architectures and added riscv support

This commit is contained in:
Bryan McShea
2024-01-24 00:41:51 -05:00
parent e5a6b6073f
commit 461269ed32
30 changed files with 683 additions and 425 deletions

10
kernel/.cargo/config.toml Normal file
View File

@@ -0,0 +1,10 @@
[build]
# rustflags = ["-g"]
target = ["riscv64gc-unknown-none-elf", "x86_64-unknown-none"]
[target.riscv64gc-unknown-none-elf]
rustflags = [
"-C", "link-arg=-Tsrc/arch/riscv64/link.ld",
"-C", "link-arg=--omagic",
]