From: "Nickle Wang" <nicklew@nvidia.com>
To: <devel@edk2.groups.io>
Cc: Jian J Wang <jian.j.wang@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Nick Ramirez <nramirez@nvidia.com>
Subject: [PATCH] MdeModulePkg/RegularExpressionDxe: Fix GCC build error
Date: Wed, 30 Nov 2022 23:27:47 +0800 [thread overview]
Message-ID: <20221130152747.125-1-nicklew@nvidia.com> (raw)
Fix GCC build error on AARCH64 system.
Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Nick Ramirez <nramirez@nvidia.com>
---
.../Universal/RegularExpressionDxe/OnigurumaUefiPort.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
index 3dc207da3e..e9dfd6de06 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
@@ -4,6 +4,7 @@
(C) Copyright 2014-2021 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -44,6 +45,10 @@ typedef INTN intptr_t;
#define SIZEOF_VOIDP 8
#endif
+#ifdef MDE_CPU_AARCH64
+#define SIZEOF_VOIDP 8
+#endif
+
#define calloc(n, s) AllocateZeroPool((n)*(s))
#define xmemmove(Dest, Src, Length) CopyMem(Dest,Src,Length)
#define xmemcpy(Dest, Src, Length) CopyMem(Dest,Src,Length)
--
2.38.1.windows.1
next reply other threads:[~2022-11-30 15:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-30 15:27 Nickle Wang [this message]
2022-11-30 16:28 ` [edk2-devel] [PATCH] MdeModulePkg/RegularExpressionDxe: Fix GCC build error Michael D Kinney
2022-12-01 3:47 ` Nickle Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221130152747.125-1-nicklew@nvidia.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox