diff options
author | Chao Li <lichao@loongson.cn> | 2023-01-31 18:27:40 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-02-01 02:12:41 +0000 |
commit | bda715bf6d7cf565ccd4eda1f48e850ab8e2d452 (patch) | |
tree | 99c5f86669c9ea0e1a4fbf3b3e428e9bba7d5c3a | |
parent | 2f2fd79fc4000a9ef89792677e85c99224e5a035 (diff) | |
download | edk2-bda715bf6d7cf565ccd4eda1f48e850ab8e2d452.tar.gz |
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 <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Signed-off-by: Chao Li <lichao@loongson.cn>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
-rw-r--r-- | MdePkg/Include/LoongArch64/ProcessorBind.h | 22 |
1 files changed, 11 insertions, 11 deletions
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,
|