feat(adapter): higher-half kernel (linked at PHYS_OFFSET, boot trampoline, no low mappings), fix SBI ecall clobbers
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
use crate::board;
|
||||
|
||||
const PLIC_PRIORITY: usize = board::PLIC_BASE;
|
||||
const PLIC_S_ENABLE: usize = board::PLIC_BASE + 0x2080;
|
||||
const PLIC_S_THRESHOLD: usize = board::PLIC_BASE + 0x201000;
|
||||
const PLIC_S_CLAIM: usize = board::PLIC_BASE + 0x201004;
|
||||
const PLIC: usize = crate::mmu::phys_to_virt(board::PLIC_BASE);
|
||||
const PLIC_PRIORITY: usize = PLIC;
|
||||
const PLIC_S_ENABLE: usize = PLIC + 0x2080;
|
||||
const PLIC_S_THRESHOLD: usize = PLIC + 0x201000;
|
||||
const PLIC_S_CLAIM: usize = PLIC + 0x201004;
|
||||
|
||||
pub struct Plic;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user