-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OvmfPkg/VirtNorFlashDxe: Not add memory space if it exists
The flash base address can be added to GCD before this driver run. So only add it if it has not been done. Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
- Loading branch information
1 parent
c422f02
commit b7387da
Showing
1 changed file
with
16 additions
and
9 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
b7387da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be hyperspecific about the "can be added to GCD before this driver run"? Is it today? When is it added and by what agent? IIRC Ard also had a question on this commit.
b7387da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this because of 8193fe8#diff-cf3a936c9de796c88588a889401935f9e29b573d02b6bd106220641bbae22f98R143? And what happens if you don't call AddIoMemoryBaseSizeHob in the PrePi SEC?
b7387da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is correct. I recall, it is RuntimeDxe accessing FLASH address before the VirtNorFlashDxe run