Verified Commit f070d2df authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Use arch::PHYS_OFFSET for bios bootloader

parent 8aa4a3ad
......@@ -8,6 +8,7 @@ use linked_list_allocator::LockedHeap;
use spin::Mutex;
use crate::KernelArgs;
use crate::arch::PHYS_OFFSET;
use crate::logger::LOGGER;
use crate::os::{Os, OsKey, OsVideoMode};
......@@ -38,8 +39,6 @@ const DISK_ADDRESS_PACKET_ADDR: usize = 0x2398; // 16 bytes, ends at 0x23A7
const THUNK_STACK_ADDR: usize = 0x7C00; // Grows downwards
const VGA_ADDR: usize = 0xB8000;
const PHYS_OFFSET: u64 = 0xFFFF800000000000;
#[global_allocator]
static ALLOCATOR: LockedHeap = LockedHeap::empty();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment