|
|
@ -11,6 +11,8 @@ pub const PAGE_SIZE: usize = 4096;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pub fn init(boot_info: &BootInformation) {
|
|
|
|
pub fn init(boot_info: &BootInformation) {
|
|
|
|
|
|
|
|
assert_has_not_been_called!("memory::init must be called only once");
|
|
|
|
|
|
|
|
|
|
|
|
let memory_map_tag = boot_info.memory_map_tag().expect(
|
|
|
|
let memory_map_tag = boot_info.memory_map_tag().expect(
|
|
|
|
"Memory map tag required");
|
|
|
|
"Memory map tag required");
|
|
|
|
let elf_sections_tag = boot_info.elf_sections_tag().expect(
|
|
|
|
let elf_sections_tag = boot_info.elf_sections_tag().expect(
|
|
|
|