Fix mouse position, map display on APs
This commit is contained in:
parent
1e5d992ab5
commit
722d738254
6 changed files with 53 additions and 9 deletions
|
@ -165,6 +165,9 @@ pub unsafe extern fn kstart_ap(stack_start: usize, stack_end: usize) -> ! {
|
|||
assert_eq!(TDATA_TEST_NONZERO, 0xFFFFFFFFFFFFFFFE);
|
||||
}
|
||||
|
||||
// Init devices for AP
|
||||
device::init_ap(&mut active_table);
|
||||
|
||||
// Map heap
|
||||
{
|
||||
let heap_start_page = Page::containing_address(VirtualAddress::new(HEAP_START));
|
||||
|
@ -192,5 +195,10 @@ pub unsafe extern fn kstart_ap(stack_start: usize, stack_end: usize) -> ! {
|
|||
interrupt::pause();
|
||||
}
|
||||
|
||||
if let Some(ref mut display) = *device::display::DISPLAY.lock() {
|
||||
let width = display.width;
|
||||
display.rect(0, ap_number * 32, width, 16, 0xFF00);
|
||||
}
|
||||
|
||||
kmain_ap(ap_number);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue