TianoCore EDK2 master
Loading...
Searching...
No Matches
QemuCommon.c
Go to the documentation of this file.
1
7#include <Library/BaseLib.h>
8#include <Library/DebugLib.h>
9
10#include "VirtHstiDxe.h"
11
12VOID
13VirtHstiQemuCommonInit (
15 )
16{
17 VirtHstiSetSupported (VirtHsti, 0, VIRT_HSTI_BYTE0_READONLY_CODE_FLASH);
18}
19
20VOID
21VirtHstiQemuCommonVerify (
22 VOID
23 )
24{
25 CHAR16 *ErrorMsg;
26
27 switch (VirtHstiQemuFirmwareFlashCheck (PcdGet32 (PcdBfvBase))) {
28 case QEMU_FIRMWARE_FLASH_WRITABLE:
29 ErrorMsg = L"qemu code pflash is writable";
30 break;
31 default:
32 ErrorMsg = NULL;
33 }
34
35 VirtHstiTestResult (ErrorMsg, 0, VIRT_HSTI_BYTE0_READONLY_CODE_FLASH);
36}
#define NULL
Definition: Base.h:319
#define PcdGet32(TokenName)
Definition: PcdLib.h:362