mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
kernel: riscv: use klog for memory exception printing
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
0dd382b66a
commit
dcc964c3c1
1 changed files with 1 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ pub extern "C" fn trap_handler(
|
||||||
crate::arch::mem::ensure_page_exists_inner(addr)
|
crate::arch::mem::ensure_page_exists_inner(addr)
|
||||||
.map(|_new_page| {
|
.map(|_new_page| {
|
||||||
#[cfg(all(feature = "debug-print", feature = "print-panics"))]
|
#[cfg(all(feature = "debug-print", feature = "print-panics"))]
|
||||||
println!("Handing page {:08x} to process", _new_page);
|
klog!("Handing page {:08x} to process", _new_page);
|
||||||
ArchProcess::with_current_mut(|process| {
|
ArchProcess::with_current_mut(|process| {
|
||||||
crate::arch::syscall::resume(
|
crate::arch::syscall::resume(
|
||||||
current_pid().get() == 1,
|
current_pid().get() == 1,
|
||||||
|
|
@ -271,7 +271,6 @@ pub extern "C" fn trap_handler(
|
||||||
// determine if there is an exception handler in this particular program
|
// determine if there is an exception handler in this particular program
|
||||||
// and call that handler if so.
|
// and call that handler if so.
|
||||||
if let Some(args) = generate_exception_args(&ex) {
|
if let Some(args) = generate_exception_args(&ex) {
|
||||||
klog!("Generated exception args -- invoking handler");
|
|
||||||
if let Some(handler) = SystemServices::with_mut(|ss| ss.begin_exception_handler(pid)) {
|
if let Some(handler) = SystemServices::with_mut(|ss| ss.begin_exception_handler(pid)) {
|
||||||
klog!("Exception handler for process exists ({:x?})", handler);
|
klog!("Exception handler for process exists ({:x?})", handler);
|
||||||
// If this is the sort of exception that may be able to be handled by
|
// If this is the sort of exception that may be able to be handled by
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue