forked from ariadne/libucontext
rename __makecontext to libucontext_makecontext
parent
fe19127c66
commit
c693dc663c
|
@ -24,7 +24,7 @@ extern void __start_context(void);
|
||||||
|
|
||||||
|
|
||||||
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 *sp;
|
||||||
unsigned long *regp;
|
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")));
|
||||||
|
|
|
@ -26,7 +26,7 @@ extern void __start_context(void);
|
||||||
|
|
||||||
|
|
||||||
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 *sp;
|
||||||
unsigned long *regp;
|
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")));
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern void __start_context(void);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
||||||
{
|
{
|
||||||
greg_t *sp;
|
greg_t *sp;
|
||||||
va_list va;
|
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")));
|
||||||
|
|
|
@ -21,10 +21,10 @@ A3_OFF = FRAMESZ + (3 * REG_SZ)
|
||||||
* assembly rather than C. Annoying, that...
|
* assembly rather than C. Annoying, that...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ALIAS(makecontext, __makecontext)
|
ALIAS(makecontext, libucontext_makecontext)
|
||||||
|
|
||||||
FUNC(__makecontext)
|
FUNC(libucontext_makecontext)
|
||||||
PUSH_FRAME(__makecontext)
|
PUSH_FRAME(libucontext_makecontext)
|
||||||
|
|
||||||
/* store $a3 through $a7 to the stack frame. */
|
/* store $a3 through $a7 to the stack frame. */
|
||||||
sw $a3, A3_OFF($sp)
|
sw $a3, A3_OFF($sp)
|
||||||
|
@ -94,7 +94,7 @@ no_more_arguments:
|
||||||
/* set our $pc */
|
/* set our $pc */
|
||||||
sw $a1, MCONTEXT_PC($a0)
|
sw $a1, MCONTEXT_PC($a0)
|
||||||
|
|
||||||
POP_FRAME(__makecontext)
|
POP_FRAME(libucontext_makecontext)
|
||||||
|
|
||||||
jr $ra
|
jr $ra
|
||||||
END(__makecontext)
|
END(libucontext_makecontext)
|
||||||
|
|
|
@ -26,10 +26,10 @@ A7_OFF = FRAMESZ - (1 * REG_SZ)
|
||||||
* assembly rather than C. Annoying, that...
|
* assembly rather than C. Annoying, that...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ALIAS(makecontext, __makecontext)
|
ALIAS(makecontext, libucontext_makecontext)
|
||||||
|
|
||||||
FUNC(__makecontext)
|
FUNC(libucontext_makecontext)
|
||||||
PUSH_FRAME(__makecontext)
|
PUSH_FRAME(libucontext_makecontext)
|
||||||
|
|
||||||
/* store $a3 through $a7 to the stack frame. */
|
/* store $a3 through $a7 to the stack frame. */
|
||||||
sd $a3, A3_OFF($sp)
|
sd $a3, A3_OFF($sp)
|
||||||
|
@ -100,7 +100,7 @@ no_more_arguments:
|
||||||
/* set our $pc */
|
/* set our $pc */
|
||||||
sd $a1, MCONTEXT_PC($a0)
|
sd $a1, MCONTEXT_PC($a0)
|
||||||
|
|
||||||
POP_FRAME(__makecontext)
|
POP_FRAME(libucontext_makecontext)
|
||||||
|
|
||||||
jr $ra
|
jr $ra
|
||||||
END(__makecontext)
|
END(libucontext_makecontext)
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern void __start_context(void);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
__makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
|
libucontext_makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
|
||||||
{
|
{
|
||||||
greg_t *sp;
|
greg_t *sp;
|
||||||
va_list va;
|
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")));
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern void __start_context(void);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
__makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
|
libucontext_makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
|
||||||
{
|
{
|
||||||
greg_t *sp;
|
greg_t *sp;
|
||||||
va_list va;
|
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")));
|
||||||
|
|
|
@ -24,7 +24,7 @@ extern void __start_context(void);
|
||||||
|
|
||||||
|
|
||||||
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;
|
greg_t *sp, *regp;
|
||||||
va_list va;
|
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")));
|
||||||
|
|
|
@ -26,7 +26,7 @@ extern int __setcontext(const ucontext_t *ucp);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
||||||
{
|
{
|
||||||
greg_t *sp;
|
greg_t *sp;
|
||||||
va_list va;
|
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")));
|
||||||
|
|
|
@ -23,7 +23,7 @@ extern void __start_context(void);
|
||||||
|
|
||||||
|
|
||||||
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;
|
greg_t *sp, *argp;
|
||||||
va_list va;
|
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")));
|
||||||
|
|
|
@ -23,7 +23,7 @@ extern void __start_context(void);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
libucontext_makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
||||||
{
|
{
|
||||||
greg_t *sp;
|
greg_t *sp;
|
||||||
va_list va;
|
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")));
|
||||||
|
|
Loading…
Reference in New Issue