]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiPayloadPkg/Include/Library/BlParseLib.h
UefiPayloadPkg: Remove asm code and sharing libraries
[mirror_edk2.git] / UefiPayloadPkg / Include / Library / BlParseLib.h
index 20a526d15c6325b17719445f1a70db9829983ed4..1244190d4e87237c07e715fe69879157fd0d0f7e 100644 (file)
@@ -2,7 +2,7 @@
   This library will parse the coreboot table in memory and extract those required\r
   information.\r
 \r
-  Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -16,8 +16,7 @@
 #ifndef __BOOTLOADER_PARSE_LIB__\r
 #define __BOOTLOADER_PARSE_LIB__\r
 \r
-#define GET_BOOTLOADER_PARAMETER()      (*(UINTN *)(UINTN)(PcdGet32(PcdPayloadStackTop) - sizeof(UINT64)))\r
-#define SET_BOOTLOADER_PARAMETER(Value) GET_BOOTLOADER_PARAMETER()=Value\r
+#define GET_BOOTLOADER_PARAMETER()      PcdGet64 (PcdBootloaderParameter)\r
 \r
 typedef RETURN_STATUS \\r
         (*BL_MEM_INFO_CALLBACK) (MEMROY_MAP_ENTRY *MemoryMapEntry, VOID *Param);\r