mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
fixup tag return API
returns a [u8;4] instead of a u32
This commit is contained in:
parent
03ea3c9d0c
commit
9c9c6f67a7
2 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ pub fn boot_or_die() -> ! {
|
||||||
Ok((k, tag)) => crate::println!(
|
Ok((k, tag)) => crate::println!(
|
||||||
"**should be unreachable** Booted with key {}({})",
|
"**should be unreachable** Booted with key {}({})",
|
||||||
k,
|
k,
|
||||||
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
|
core::str::from_utf8(&tag).unwrap_or("invalid tag")
|
||||||
),
|
),
|
||||||
Err(e) => crate::println!("Image did not validate: {:?}", e),
|
Err(e) => crate::println!("Image did not validate: {:?}", e),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
|
||||||
Ok((k, tag)) => println!(
|
Ok((k, tag)) => println!(
|
||||||
"*** Kernel signature check by key @ {}({}) OK ***",
|
"*** Kernel signature check by key @ {}({}) OK ***",
|
||||||
k,
|
k,
|
||||||
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
|
core::str::from_utf8(&tag).unwrap_or("invalid tag")
|
||||||
),
|
),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("Kernel failed signature check. Dying: {:?}", e);
|
println!("Kernel failed signature check. Dying: {:?}", e);
|
||||||
|
|
@ -293,7 +293,7 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
|
||||||
println!(
|
println!(
|
||||||
"*** Detached app signature check by key @ {}({}) OK ***",
|
"*** Detached app signature check by key @ {}({}) OK ***",
|
||||||
k,
|
k,
|
||||||
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
|
core::str::from_utf8(&tag).unwrap_or("invalid tag")
|
||||||
);
|
);
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue