Commit 8afeb8bc authored by Thomas Lambertz's avatar Thomas Lambertz
Browse files

Fix loader. Previously strongly dependent on the input ELF layout.

Kernel had to lie non-overlapping with its final position, but still
inside the ELF since no additional memory was marked writable.
parent 23e217d9
......@@ -12,7 +12,7 @@
extern crate rusty_loader;
use core::intrinsics::copy_nonoverlapping;
use core::intrinsics::copy;
use rusty_loader::arch;
use rusty_loader::*;
......@@ -37,7 +37,8 @@ pub unsafe extern "C" fn loader_main() -> ! {
arch::map_memory(virtual_address, mem_size);
kernel_location as *const u8,
virtual_address as *mut u8,
Markdown is supported
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