TianoCore EDK2 master
Loading...
Searching...
No Matches
X86FxSave.c
Go to the documentation of this file.
1
9#include "BaseLibInternals.h"
10
24VOID
25EFIAPI
27 OUT IA32_FX_BUFFER *Buffer
28 )
29{
30 ASSERT (Buffer != NULL);
31 ASSERT (0 == ((UINTN)Buffer & 0xf));
32
33 InternalX86FxSave (Buffer);
34
35 //
36 // Mark one flag at end of Buffer, it will be check by AsmFxRestor()
37 //
38 *(UINT32 *)(&Buffer->Buffer[sizeof (Buffer->Buffer) - 4]) = 0xAA5555AA;
39}
UINT64 UINTN
VOID EFIAPI InternalX86FxSave(OUT IA32_FX_BUFFER *Buffer)
Definition: FxSave.c:23
#define NULL
Definition: Base.h:319
#define OUT
Definition: Base.h:284
VOID EFIAPI AsmFxSave(OUT IA32_FX_BUFFER *Buffer)
Definition: X86FxSave.c:26