-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: fix test-in-svsm use of the test serial port
The test serial port must use the same platform abstraction as the rest of the I/O port abstraction. Since serial port construction is now platform-specific, the construction is moved to the first use of the test serial port. The serial port cell is changed to an `Option` to simplify the synchronization of the dynamic initialization across consumers. Also, for better abstraction, the operation to obtain the test serial port doesn't emit a byte; it simply returns the port so the caller can write whatever it wants. Signed-off-by: Jon Lange <[email protected]>
- Loading branch information
1 parent
cf2cbce
commit b722a58
Showing
2 changed files
with
13 additions
and
18 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