|
@@ -33,10 +33,10 @@ pub fn device_tree_deserialize_root<'a>(
|
|
|
pub fn invalid_dynamic_data(err: dynamic::DynamicError) -> (mstatus::MPP, usize) {
|
|
|
error!("Invalid data in dynamic information:");
|
|
|
if err.invalid_mpp {
|
|
|
- error!("- dynamic information contains invalid privilege mode");
|
|
|
+ error!("* dynamic information contains invalid privilege mode");
|
|
|
}
|
|
|
if err.invalid_next_addr {
|
|
|
- error!("- dynamic information contains invalid next jump address");
|
|
|
+ error!("* dynamic information contains invalid next jump address");
|
|
|
}
|
|
|
let explain_next_mode = match err.bad_info.next_mode {
|
|
|
3 => "Machine",
|
|
@@ -45,7 +45,7 @@ pub fn invalid_dynamic_data(err: dynamic::DynamicError) -> (mstatus::MPP, usize)
|
|
|
_ => "Invalid",
|
|
|
};
|
|
|
error!(
|
|
|
- "help: dynamic information contains magic value 0x{:x}, version {}, next jump address 0x{:x}, next privilege mode {} ({}), options {:x}, boot hart ID {}",
|
|
|
+ "@ help: dynamic information contains magic value 0x{:x}, version {}, next jump address 0x{:x}, next privilege mode {} ({}), options {:x}, boot hart ID {}",
|
|
|
err.bad_info.magic, err.bad_info.version, err.bad_info.next_addr, err.bad_info.next_mode, explain_next_mode, err.bad_info.options, err.bad_info.boot_hart
|
|
|
);
|
|
|
reset::fail()
|
|
@@ -64,18 +64,18 @@ pub fn no_dynamic_info_available(err: dynamic::DynamicReadError) -> dynamic::Dyn
|
|
|
error!("No valid dynamic information available:");
|
|
|
if let Some(bad_magic) = err.bad_magic {
|
|
|
error!(
|
|
|
- "- tried to identify dynamic information, but found invalid magic number 0x{:x}",
|
|
|
+ "* tried to identify dynamic information, but found invalid magic number 0x{:x}",
|
|
|
bad_magic
|
|
|
);
|
|
|
}
|
|
|
if let Some(bad_version) = err.bad_version {
|
|
|
- error!("- tries to identify version of dynamic information, but the version number {} is not supported", bad_version);
|
|
|
+ error!("* tries to identify version of dynamic information, but the version number {} is not supported", bad_version);
|
|
|
}
|
|
|
if err.bad_magic.is_none() {
|
|
|
- error!("help: magic number is valid")
|
|
|
+ error!("@ help: magic number is valid")
|
|
|
}
|
|
|
if err.bad_version.is_none() {
|
|
|
- error!("help: dynamic information version is valid")
|
|
|
+ error!("@ help: dynamic information version is valid")
|
|
|
}
|
|
|
}
|
|
|
reset::fail()
|