z
This commit is contained in:
parent
9516a0c7d3
commit
e90a19d3a2
4 changed files with 55 additions and 4 deletions
|
@ -3,8 +3,8 @@ target = "riscv64gc-unknown-none-elf"
|
||||||
|
|
||||||
[target.riscv64gc-unknown-none-elf]
|
[target.riscv64gc-unknown-none-elf]
|
||||||
rustflags = [
|
rustflags = [
|
||||||
"--print",
|
# Turn this on to see the linker args
|
||||||
"link-args",
|
# "--print", "link-args",
|
||||||
"-C",
|
"-C",
|
||||||
"link-arg=--script",
|
"link-arg=--script",
|
||||||
"-C",
|
"-C",
|
||||||
|
@ -12,4 +12,5 @@ rustflags = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[term]
|
[term]
|
||||||
verbose = true
|
# Turn this on to see detailed information about compile commands
|
||||||
|
# verbose = true
|
||||||
|
|
49
Cargo.lock
generated
49
Cargo.lock
generated
|
@ -2,6 +2,55 @@
|
||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
version = 3
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "contracts"
|
||||||
|
version = "0.6.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f1d1429e3bd78171c65aa010eabcdf8f863ba3254728dbfb0ad4b1545beac15c"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kernel"
|
name = "kernel"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"contracts",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "proc-macro2"
|
||||||
|
version = "1.0.92"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
|
||||||
|
dependencies = [
|
||||||
|
"unicode-ident",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "quote"
|
||||||
|
version = "1.0.37"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "syn"
|
||||||
|
version = "1.0.109"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"unicode-ident",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "unicode-ident"
|
||||||
|
version = "1.0.14"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
|
||||||
|
|
|
@ -10,3 +10,4 @@ panic = "abort"
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
contracts = "0.6.3"
|
||||||
|
|
|
@ -11,7 +11,7 @@ fn panic_handler(_: &PanicInfo) -> ! {
|
||||||
}
|
}
|
||||||
|
|
||||||
const UART0: usize = 0x10000000;
|
const UART0: usize = 0x10000000;
|
||||||
static HELLO: &[u8] = b"Hello World!\n";
|
static HELLO: &[u8] = b"meow\n";
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn start() -> ! {
|
pub unsafe extern "C" fn start() -> ! {
|
||||||
|
|
Loading…
Reference in a new issue