Skip to content

Commit

Permalink
[Kernel] Enable LAPIC and its timer
Browse files Browse the repository at this point in the history
  • Loading branch information
codyd51 committed Jan 19, 2023
1 parent 6ef5a91 commit 8398add
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ void ap_c_entry(void) {
}

void ap_entry_part2(void) {
printf("Enabling LAPIC...\n");
local_apic_enable();
printf("Enabling LAPIC timer...\n");
local_apic_enable_timer();
while (1) {}
}

Expand Down

0 comments on commit 8398add

Please sign in to comment.