Am 25. April 2023 01:08:19 MESZ schrieb Simon Glass <s...@chromium.org>: >The Linux register format is not used in Windows, so disable this feature. > >Signed-off-by: Simon Glass <s...@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) In the commit message you only mention Linux and Windows. How about BSD and other POSIX? > pc = context->uc_mcontext.gregs[REG_RIP]; > #elif defined(__aarch64__) __aarch64__ does not imply Linux. There are Windows and other POSIX (BSD, macOS) systems running on ARM. __riscv, armhf may also occur on different POSIX systems. Best regards Heinrich > pc = context->uc_mcontext.pc;
- Re: [PATCH 10/31] sandbox: Provide a linker s... Simon Glass
- Re: [PATCH 10/31] sandbox: Provide a link... Pali Rohár
- Re: [PATCH 10/31] sandbox: Provide a ... Simon Glass
- Re: [PATCH 10/31] sandbox: Provi... Pali Rohár
- Re: [PATCH 10/31] sandbox: P... Simon Glass
- Re: [PATCH 10/31] sandbox: P... Pali Rohár
- Re: [PATCH 10/31] sandbox: P... Pali Rohár
- [PATCH 15/31] sandbox: Correct SDL.h header inclusion Simon Glass
- [PATCH 13/31] sandbox: Disable raw Ethernet on MSYS2 Simon Glass
- [PATCH 14/31] sandbox: Drop signal handling for MSYS2 Simon Glass
- Re: [PATCH 14/31] sandbox: Drop signal handling f... Heinrich Schuchardt
- [PATCH 16/31] sandbox: Include errno.h in the test hea... Simon Glass
- [PATCH 19/31] sandbox: Drop incorrect inclusion of lin... Simon Glass
- [PATCH 23/31] ctype: Avoid using a symlink Simon Glass
- [PATCH 22/31] sandbox: Fix up setting of monitor_len o... Simon Glass
- [PATCH 24/31] build: Disable weak symbols for MSYS2 Simon Glass
- [PATCH 17/31] sandbox: Allow weak symbols to be droppe... Simon Glass
- Re: [PATCH 17/31] sandbox: Allow weak symbols to ... Heinrich Schuchardt
- Re: [PATCH 17/31] sandbox: Allow weak symbols... Simon Glass