From 204194a4baa9d6ebecc026f2f06517baa51343ac Mon Sep 17 00:00:00 2001 From: Ruidy Date: Sun, 2 May 2021 10:55:54 +0200 Subject: [PATCH] build a 'kernel' --- .cargo/config.toml | 6 ++++++ x86_64-os.json | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 x86_64-os.json diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..d35fec5 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,6 @@ +[build] +target = "x86_64-os.json" + +[unstable] +build-std = ["core", "compiler_builtins"] +build-std-features = ["compiler-builtins-mem"] diff --git a/x86_64-os.json b/x86_64-os.json new file mode 100644 index 0000000..97da923 --- /dev/null +++ b/x86_64-os.json @@ -0,0 +1,15 @@ +{ + "llvm-target": "x86_64-unknown-none", + "data-layout": "e-m:e-i64:64-f80:128-n8:16:32:64-S128", + "arch": "x86_64", + "target-endian": "little", + "target-pointer-width": "64", + "target-c-int-width": "32", + "os": "none", + "executables": true, + "linker-flavor": "ld.lld", + "linker": "rust-lld", + "panic-strategy": "abort", + "disable-redzone": true, + "features": "-mmx,-sse,+soft-float" +} \ No newline at end of file