diff --git a/.cargo/config.toml b/.cargo/config.toml index 7d01a05..ee5c196 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,8 +1,9 @@ # .cargo/config.toml [build] -target = "riscv32imac-unknown-none-elf" +target = "riscv64imac-unknown-none-elf" +# options for riscv32 (not currently in use) [target.riscv32imac-unknown-none-elf] runner = """ qemu-system-riscv32 -cpu rv32 @@ -11,4 +12,14 @@ runner = """ qemu-system-riscv32 -s -nographic -serial mon:stdio + -bios """ + +[target.riscv64imac-unknown-none-elf] +runner = """ qemu-system-riscv64 + -cpu rv64 + -machine virt + -m 150M + -s + -nographic + -serial mon:stdio -bios """ \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 479f982..701845c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,6 +8,13 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +[[package]] +name = "kernel" +version = "0.1.0" +dependencies = [ + "spinning_top", +] + [[package]] name = "lock_api" version = "0.4.12" @@ -18,13 +25,6 @@ dependencies = [ "scopeguard", ] -[[package]] -name = "riscv-uefi" -version = "0.1.0" -dependencies = [ - "spinning_top", -] - [[package]] name = "scopeguard" version = "1.2.0" diff --git a/Cargo.toml b/Cargo.toml index 108623b..3d34e78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "riscv-uefi" +name = "kernel" version = "0.1.0" edition = "2021"