summaryrefslogtreecommitdiff
path: root/src/include/efi
diff options
context:
space:
mode:
authorAppukuttan V K <appukuttan.vk@intel.com>2024-04-02 17:26:25 +0530
committerFelix Held <felix-coreboot@felixheld.de>2024-04-22 14:52:15 +0000
commit2d89c7821744de70e5bddd3a1659dd43c4be5d4e (patch)
tree0869811ff047f4fb01470f010d402aeb519977a5 /src/include/efi
parentb55000b2d5975f2355936c99b5b732ae4b9da3d3 (diff)
drivers/intel/fsp2_0: Introduce fsp print helper macros
This patch introduces fsp print helper macros to print `efi_return_status_t' with the appropriate format. These macros are now used for fsp debug prints with return status efi_return_status_t is defined as UINT64 or UNIT32 based on the selected architecture BUG=b:329034258 TEST=Verified on Meteor Lake board (Rex) Change-Id: If6342c4d40c76b702351070e424797c21138a4a9 Signed-off-by: Appukuttan V K <appukuttan.vk@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81630 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/efi')
-rw-r--r--src/include/efi/efi_datatype.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/efi/efi_datatype.h b/src/include/efi/efi_datatype.h
index 31612b84c9..8a1a124d5a 100644
--- a/src/include/efi/efi_datatype.h
+++ b/src/include/efi/efi_datatype.h
@@ -65,7 +65,11 @@ typedef UINTN efi_uintn_t;
/* Signed value of native width. */
typedef INTN efi_intn_t;
/* Status codes common to all execution phases */
-typedef EFI_STATUS efi_return_status_t;
+#if CONFIG(PLATFORM_USES_FSP2_X86_32)
+typedef UINT32 efi_return_status_t;
+#else
+typedef UINT64 efi_return_status_t;
+#endif
/* Data structure for EFI_PHYSICAL_ADDRESS */
typedef EFI_PHYSICAL_ADDRESS efi_physical_address;
/* 128-bit buffer containing a unique identifier value */