Cleanup PML4 entries, pass correct cpu ID to trampoline
This commit is contained in:
parent
1298e38ed8
commit
11eddfecd1
6 changed files with 42 additions and 74 deletions
|
@ -25,7 +25,7 @@ pub const PAGE_SIZE: usize = 4096;
|
|||
/// Initialize paging
|
||||
///
|
||||
/// Returns page table and thread control block offset
|
||||
pub unsafe fn init(stack_start: usize, stack_end: usize) -> (ActivePageTable, usize) {
|
||||
pub unsafe fn init(cpu_id: usize, stack_start: usize, stack_end: usize) -> (ActivePageTable, usize) {
|
||||
extern {
|
||||
/// The starting byte of the text (code) data segment.
|
||||
static mut __text_start: u8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue