Adds arch_cpu_mode() to the contract, reading real hardware state: x86 CS.CPL -> ring0, RISC-V mhartid (M-only CSR) -> M-mode, ARM CPSR[4:0] -> SVC. Confirms M1 runs fully privileged, no user mode. |
||
|---|---|---|
| .. | ||
| arch.h | ||
| console.h | ||
Adds arch_cpu_mode() to the contract, reading real hardware state: x86 CS.CPL -> ring0, RISC-V mhartid (M-only CSR) -> M-mode, ARM CPSR[4:0] -> SVC. Confirms M1 runs fully privileged, no user mode. |
||
|---|---|---|
| .. | ||
| arch.h | ||
| console.h | ||