You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(P3): add EXECUTE and GLOBAL flags to kernel page mappings
kernel_rw() lacked X (execute) and G (global) bits — Sv39 hardware
checks X on instruction fetch, so enabling paging would immediately
trigger an instruction page fault (scause=12). Add kernel_rwx() preset
with V|R|W|X|G|A|D for the initial identity mapping, matching the C++
GetKernelPagePermissions() defaults. Also add GLOBAL to all kernel_*
presets for TLB efficiency across ASID switches.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Niu Zhihong <zhihong@nzhnb.com>
0 commit comments