kernel/vm: fix several vm bugs in riscv64
team.cpp address_space change is needed in arch_thread_init_kthread_stack to set initial thread page translation map. It also allows to simplify some debugger code. DEBUG_PAGE_ACCESS check is currently incorrectly implemented in RISCV64VMTranslationMap and disabled to avoid panic. gHtifRegs = 0 change is needed to avoid using HTIF when it is not available. gHtifRegs != NULL check is used to detect that HTIF is present. 0x40008000 is TinyEMU HTIF address. HTIF is emulator specific device that provide serial IO and shutdown capability (and maybe something else depending on virtual machine). Change-Id: Ic4d567b28c49799ae0f55223dd983a752823bab4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4328 Reviewed-by: Alex von Gluck IV <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
@@ -93,7 +93,9 @@
|
||||
|
||||
// Enables the vm_page::access_count field, which is used to detect invalid
|
||||
// concurrent access to the page.
|
||||
#ifndef __riscv
|
||||
#define DEBUG_PAGE_ACCESS KDEBUG_LEVEL_2
|
||||
#endif
|
||||
|
||||
// Enables a global list of all vm_cache structures.
|
||||
#define DEBUG_CACHE_LIST KDEBUG_LEVEL_2
|
||||
|
||||
Reference in New Issue
Block a user