rename __makecontext to libucontext_makecontext

master
Ariadne Conill 2020-12-06 02:56:59 -06:00
parent fe19127c66
commit c693dc663c
11 changed files with 28 additions and 28 deletions

View File

@ -24,7 +24,7 @@ extern void __start_context(void);
void
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
{
unsigned long *sp;
unsigned long *regp;
@ -54,4 +54,4 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));

View File

@ -26,7 +26,7 @@ extern void __start_context(void);
void
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
{
unsigned long *sp;
unsigned long *regp;
@ -58,4 +58,4 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));

View File

@ -24,7 +24,7 @@ extern void __start_context(void);
void
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
{
greg_t *sp;
va_list va;
@ -57,4 +57,4 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));

View File

@ -21,10 +21,10 @@ A3_OFF = FRAMESZ + (3 * REG_SZ)
* assembly rather than C. Annoying, that...
*/
ALIAS(makecontext, __makecontext)
ALIAS(makecontext, libucontext_makecontext)
FUNC(__makecontext)
PUSH_FRAME(__makecontext)
FUNC(libucontext_makecontext)
PUSH_FRAME(libucontext_makecontext)
/* store $a3 through $a7 to the stack frame. */
sw $a3, A3_OFF($sp)
@ -94,7 +94,7 @@ no_more_arguments:
/* set our $pc */
sw $a1, MCONTEXT_PC($a0)
POP_FRAME(__makecontext)
POP_FRAME(libucontext_makecontext)
jr $ra
END(__makecontext)
END(libucontext_makecontext)

View File

@ -26,10 +26,10 @@ A7_OFF = FRAMESZ - (1 * REG_SZ)
* assembly rather than C. Annoying, that...
*/
ALIAS(makecontext, __makecontext)
ALIAS(makecontext, libucontext_makecontext)
FUNC(__makecontext)
PUSH_FRAME(__makecontext)
FUNC(libucontext_makecontext)
PUSH_FRAME(libucontext_makecontext)
/* store $a3 through $a7 to the stack frame. */
sd $a3, A3_OFF($sp)
@ -100,7 +100,7 @@ no_more_arguments:
/* set our $pc */
sd $a1, MCONTEXT_PC($a0)
POP_FRAME(__makecontext)
POP_FRAME(libucontext_makecontext)
jr $ra
END(__makecontext)
END(libucontext_makecontext)

View File

@ -24,7 +24,7 @@ extern void __start_context(void);
void
__makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
{
greg_t *sp;
va_list va;
@ -57,4 +57,4 @@ __makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));

View File

@ -24,7 +24,7 @@ extern void __start_context(void);
void
__makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
{
greg_t *sp;
va_list va;
@ -58,4 +58,4 @@ __makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));

View File

@ -24,7 +24,7 @@ extern void __start_context(void);
void
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
{
greg_t *sp, *regp;
va_list va;
@ -59,4 +59,4 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));

View File

@ -26,7 +26,7 @@ extern int __setcontext(const ucontext_t *ucp);
void
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
{
greg_t *sp;
va_list va;
@ -64,4 +64,4 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));

View File

@ -23,7 +23,7 @@ extern void __start_context(void);
void
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
{
greg_t *sp, *argp;
va_list va;
@ -54,4 +54,4 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));

View File

@ -23,7 +23,7 @@ extern void __start_context(void);
void
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
{
greg_t *sp;
va_list va;
@ -75,4 +75,4 @@ __makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
}
extern __typeof(__makecontext) makecontext __attribute__((weak, __alias__("__makecontext")));
extern __typeof(libucontext_makecontext) makecontext __attribute__((weak, __alias__("libucontext_makecontext")));