-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The main difficulty stemmed from the fact that we don't want the platform to leak into the `PortFactory` or `Port` types, as we need to have the serial port as a static and at that point we don't know what the right `Platform` is yet. The answer is... function pointers, as they have a known size and signature. This just covers CPUID + MMIO + ports, but this should suffice as an example. I will move the rest of the operations (MSRs, attestation etc) to the trait in a separate CR as those changes are more straightforward. Bug: 350496083 Change-Id: Ide1e100147a9463c44b664edc9856d4e78151e00
- Loading branch information
Showing
20 changed files
with
394 additions
and
323 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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.