]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Fix UINT64 and INT64 word length for LoongArch64
authorChao Li <lichao@loongson.cn>
Tue, 31 Jan 2023 10:27:40 +0000 (18:27 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 1 Feb 2023 02:12:41 +0000 (02:12 +0000)
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>
MdePkg/Include/LoongArch64/ProcessorBind.h

index 502d479099579b92f48cecb7e340aa5131384748..7064fd1e7c31445d1babcd0d0230005cc3c22ca6 100644 (file)
 // Assume standard LoongArch 64-bit alignment.\r
 // Need to check portability of long long\r
 //\r
-typedef unsigned long   UINT64;\r
-typedef long            INT64;\r
-typedef unsigned int    UINT32;\r
-typedef int             INT32;\r
-typedef unsigned short  UINT16;\r
-typedef unsigned short  CHAR16;\r
-typedef short           INT16;\r
-typedef unsigned char   BOOLEAN;\r
-typedef unsigned char   UINT8;\r
-typedef char            CHAR8;\r
-typedef char            INT8;\r
+typedef unsigned long long  UINT64;\r
+typedef long long           INT64;\r
+typedef unsigned int        UINT32;\r
+typedef int                 INT32;\r
+typedef unsigned short      UINT16;\r
+typedef unsigned short      CHAR16;\r
+typedef short               INT16;\r
+typedef unsigned char       BOOLEAN;\r
+typedef unsigned char       UINT8;\r
+typedef char                CHAR8;\r
+typedef char                INT8;\r
 \r
 //\r
 // Unsigned value of native width.  (4 bytes on supported 32-bit processor instructions,\r