-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hal-x86_64): put local APIC in local storage (#499)
As described in #495, each CPU core in a SMP x86 system has its own local APIC. Currently, the mycelium HAL's interrupt code will just only ever know about the boot processor's local APIC. This is wrong. This commit reworks this to use the `%GS` local storage mechanism to store the state of the local APIC separately for each CPU core. I've added code for initializing the local APIC state on non-boot processors, which we will call when we bring up other cores. Fixes #495
- Loading branch information
Showing
3 changed files
with
123 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters