Remove debugging messages, launch elf on APs
This commit is contained in:
parent
0faa82609d
commit
bd7bca30fa
7 changed files with 22 additions and 30 deletions
|
@ -62,9 +62,6 @@ pub unsafe fn init(kernel_start: usize, kernel_end: usize) {
|
|||
// Copy memory map from bootloader location
|
||||
for (i, mut entry) in MEMORY_MAP.iter_mut().enumerate() {
|
||||
*entry = *(0x500 as *const MemoryArea).offset(i as isize);
|
||||
if entry.length > 0 {
|
||||
println!("{:?}", entry);
|
||||
}
|
||||
}
|
||||
|
||||
*ALLOCATOR.lock() = Some(AreaFrameAllocator::new(kernel_start, kernel_end, MemoryAreaIter::new(MEMORY_AREA_FREE)));
|
||||
|
|
|
@ -212,7 +212,6 @@ pub unsafe fn usermode(ip: usize, sp: usize) -> ! {
|
|||
mov rax, 0x23
|
||||
push rax # Push code segment
|
||||
push rcx # Push rip
|
||||
xchg bx, bx
|
||||
iretq"
|
||||
:
|
||||
: "{rbx}"(sp), "{rcx}"(ip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue