feat(adapter): higher-half kernel (linked at PHYS_OFFSET, boot trampoline, no low mappings), fix SBI ecall clobbers
This commit is contained in:
@@ -15,7 +15,7 @@ pub fn init_allocator(start: usize) {
|
||||
pub fn alloc_zeroed_page() -> usize {
|
||||
unsafe {
|
||||
let addr = NEXT_FREE;
|
||||
if addr + PAGE_SIZE > board::USER_POOL_BASE {
|
||||
if addr + PAGE_SIZE > super::phys_to_virt(board::USER_POOL_BASE) {
|
||||
crate::halt(&crate::hw::uart::Uart::new(), "boot allocator exhausted");
|
||||
}
|
||||
NEXT_FREE += PAGE_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user