From bda715bf6d7cf565ccd4eda1f48e850ab8e2d452 Mon Sep 17 00:00:00 2001 From: Chao Li Date: Tue, 31 Jan 2023 18:27:40 +0800 Subject: MdePkg: Fix UINT64 and INT64 word length for LoongArch64 The UINT64 and INT64 should be defined as unsigned long long and long long in the linux64 bit environment, but now defined as unsigned long and long, so fix it. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4330 Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Chao Li Reviewed-by: Michael D Kinney --- MdePkg/Include/LoongArch64/ProcessorBind.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'MdePkg/Include/LoongArch64') diff --git a/MdePkg/Include/LoongArch64/ProcessorBind.h b/MdePkg/Include/LoongArch64/ProcessorBind.h index 502d479099..7064fd1e7c 100644 --- a/MdePkg/Include/LoongArch64/ProcessorBind.h +++ b/MdePkg/Include/LoongArch64/ProcessorBind.h @@ -28,17 +28,17 @@ // Assume standard LoongArch 64-bit alignment. // Need to check portability of long long // -typedef unsigned long UINT64; -typedef long INT64; -typedef unsigned int UINT32; -typedef int INT32; -typedef unsigned short UINT16; -typedef unsigned short CHAR16; -typedef short INT16; -typedef unsigned char BOOLEAN; -typedef unsigned char UINT8; -typedef char CHAR8; -typedef char INT8; +typedef unsigned long long UINT64; +typedef long long INT64; +typedef unsigned int UINT32; +typedef int INT32; +typedef unsigned short UINT16; +typedef unsigned short CHAR16; +typedef short INT16; +typedef unsigned char BOOLEAN; +typedef unsigned char UINT8; +typedef char CHAR8; +typedef char INT8; // // Unsigned value of native width. (4 bytes on supported 32-bit processor instructions, -- cgit v1.2.3