[PATCH 14/31] sandbox: Drop signal handling for MSYS2
Simon Glass
sjg at chromium.org
Tue Apr 25 01:08:19 CEST 2023
The Linux register format is not used in Windows, so disable this feature.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
arch/sandbox/cpu/os.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index 5e66304e2b9d..c8b83f923ddb 100644
--- a/arch/sandbox/cpu/os.c
+++ b/arch/sandbox/cpu/os.c
@@ -285,7 +285,7 @@ static void os_signal_handler(int sig, siginfo_t *info, void *con)
ucontext_t __maybe_unused *context = con;
unsigned long pc;
-#if defined(__x86_64__)
+#if defined(__x86_64__) && defined(__linux)
pc = context->uc_mcontext.gregs[REG_RIP];
#elif defined(__aarch64__)
pc = context->uc_mcontext.pc;
--
2.40.0.634.g4ca3ef3211-goog
More information about the U-Boot
mailing list