My progress on real RISC-V hardware

After some obvious fixes such as proper handling of 64 bit PCI BARs and enabling MMIO decoding and also using VGA connector it started to display something. Now it crash in app_server Deskbar thread. “storeAccessFault” is illegal attempt to write to physical memory.

STrap(exception storeAccessFault)
  sstatus: (ie: {}, pie: {s}, spp: u, sum: 0)
  sie: {sTimer, sExtern}
  sip: {}
  stval: 0xffffffc12b802be4
  tp: 0xffffffc001468440(w:699:Deskbar)
PANIC: unhandled STrap
Welcome to Kernel Debugging Land...
Thread 721 "w:699:Deskbar" running on CPU 0
Stack:
FP: 0xffffffc00252a960
FP: 0xffffffc00252aa70, PC: 0xffffffc00215a645 <kernel_riscv64> arch_debug_call_with_fault_handler + 91
FP: 0xffffffc00252aac0, PC: 0xffffffc0020d22b1 <kernel_riscv64> debug_call_with_fault_handler.localalias.7 + 129
FP: 0xffffffc00252ab50, PC: 0xffffffc0020d38db <kernel_riscv64> _ZL20kernel_debugger_loopPKcS0_Pvi + 299
FP: 0xffffffc00252abc0, PC: 0xffffffc0020d3bc7 <kernel_riscv64> _ZL24kernel_debugger_internalPKcS0_Pvi + 135
FP: 0xffffffc00252ac00, PC: 0xffffffc0020d3f0f <kernel_riscv64> panic + 101
FP: 0xffffffc00252ad30, PC: 0xffffffc00215b857 <kernel_riscv64> STrap + 399
FP: 0xffffffc00252ae30, PC: 0xffffffc0021598dd <kernel_riscv64> SVecU + 109
FP: 0x366d9c4cb0, PC: 0x165e8acc87 <app_server_seg0ro> 0xe7c87
FP: 0x366d9c4d00, PC: 0x165e8ad04f <app_server_seg0ro> 0xe804f
FP: 0x366d9c4d60, PC: 0x165e89496d <app_server_seg0ro> 0xcf96d
FP: 0x366d9c4e00, PC: 0x165e8ae64b <app_server_seg0ro> 0xe964b
FP: 0x366d9c4e50, PC: 0x165e8ac6c9 <app_server_seg0ro> 0xe76c9
FP: 0x366d9c4e80, PC: 0x165e87d049 <app_server_seg0ro> 0xb8049
FP: 0x366d9c4f40, PC: 0x165e874fbf <app_server_seg0ro> 0xaffbf
FP: 0x366d9c4fd0, PC: 0x165e86fd3b <app_server_seg0ro> 0xaad3b
FP: 0x366d9c4fe0, PC: 0x165e852b05 <app_server_seg0ro> 0x8db05
FP: 0x366d9c5000, PC: 0x1416808f85 <libroot.so_seg0ro> 0x3bf85
FP: 0xffffffc00252ae60, PC: 0xffffffc00215c177 <kernel_riscv64> arch_thread_enter_userspace + 145
FP: 0xffffffc00252af90, PC: 0xffffffc0020aff81 <kernel_riscv64> _ZL15enter_userspacePN7BKernel6ThreadEP24UserThreadEntryArguments + 109
FP: 0xffffffc00252afb0, PC: 0xffffffc0020b4c71 <kernel_riscv64> _ZL19common_thread_entryPv + 93
FP: 0x0, PC: 0xffffffc0021597b5 <kernel_riscv64> arch_thread_entry + 3
kdebug>

CIMG4712

32 Likes