X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FReadCr2.c;h=61e7fb3b4335ca6ae664dacdfadb4b5476afc932;hp=1c682b3899c4e14eb6d215f460d86188bfdcb461;hb=030cd1a2e95018683638462e9fcfa2d204aaff33;hpb=f734a10ab104f1072f94cab66a5489e0fd8fce8a diff --git a/MdePkg/Library/BaseLib/Ia32/ReadCr2.c b/MdePkg/Library/BaseLib/Ia32/ReadCr2.c index 1c682b3899..61e7fb3b43 100644 --- a/MdePkg/Library/BaseLib/Ia32/ReadCr2.c +++ b/MdePkg/Library/BaseLib/Ia32/ReadCr2.c @@ -12,11 +12,19 @@ **/ -// -// Include common header file for this module. -// + +/** + Reads the current value of the Control Register 2 (CR2). + + Reads and returns the current value of CR2. This function is only available + on IA-32 and x64. This returns a 32-bit value on IA-32 and a 64-bit value on + x64. + + @return The value of the Control Register 2 (CR2). + +**/ UINTN EFIAPI AsmReadCr2 (