From 34472b8884c56082a671076b8052e25e1d400e08 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 3 Dec 2020 18:25:04 -0700 Subject: [PATCH] riscv64: chase musl ab3eb89a8b83353cdaab12ed017a67a7730f90e9 changes --- arch/riscv64/makecontext.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/riscv64/makecontext.c b/arch/riscv64/makecontext.c index 7325a9a..c785b08 100644 --- a/arch/riscv64/makecontext.c +++ b/arch/riscv64/makecontext.c @@ -36,17 +36,17 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) sp = (greg_t *) (((uintptr_t) sp & -16L)); /* set up the ucontext structure */ - ucp->uc_mcontext.gregs[REG_PC] = (greg_t) __start_context; - ucp->uc_mcontext.gregs[REG_S0] = 0; - ucp->uc_mcontext.gregs[REG_S1] = (greg_t) func; - ucp->uc_mcontext.gregs[REG_S2] = (greg_t) ucp->uc_link; - ucp->uc_mcontext.gregs[REG_SP] = (greg_t) sp; - ucp->uc_mcontext.gregs[REG_PC_SAVE] = 0; + ucp->uc_mcontext.__gregs[REG_PC] = (greg_t) __start_context; + ucp->uc_mcontext.__gregs[REG_S0] = 0; + ucp->uc_mcontext.__gregs[REG_S1] = (greg_t) func; + ucp->uc_mcontext.__gregs[REG_S2] = (greg_t) ucp->uc_link; + ucp->uc_mcontext.__gregs[REG_SP] = (greg_t) sp; + ucp->uc_mcontext.__gregs[REG_PC_SAVE] = 0; va_start(va, argc); /* first 8 args go in $a0 through $a7. */ - regp = &(ucp->uc_mcontext.gregs[REG_A0]); + regp = &(ucp->uc_mcontext.__gregs[REG_A0]); for (i = 0; (i < argc && i < 8); i++) *regp++ = va_arg (va, greg_t);