forked from ariadne/libucontext
ppc: fix build with libucontext_ namespacing changes
parent
a04dc12d72
commit
c10cde83da
|
@ -59,4 +59,6 @@
|
|||
/* lnk register is actually r32 */
|
||||
#define REG_LNK REG_R36
|
||||
|
||||
#include "common-defs.h"
|
||||
|
||||
#endif
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
*/
|
||||
|
||||
.global libucontext_getcontext
|
||||
.hidden libucontext_swapcontext
|
||||
.hidden __libucontext_swapcontext
|
||||
libucontext_getcontext:
|
||||
li 4, 0
|
||||
b libucontext_swapcontext@local
|
||||
b __libucontext_swapcontext@local
|
||||
|
||||
.weak getcontext
|
||||
getcontext = libucontext_getcontext
|
||||
|
|
|
@ -23,7 +23,7 @@ extern void libucontext_trampoline(void);
|
|||
|
||||
|
||||
void
|
||||
libucontext_makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
|
||||
libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(), int argc, ...)
|
||||
{
|
||||
libucontext_greg_t *sp;
|
||||
va_list va;
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
*/
|
||||
|
||||
.global libucontext_setcontext
|
||||
.hidden libucontext_swapcontext
|
||||
.hidden __libucontext_swapcontext
|
||||
libucontext_setcontext:
|
||||
mr 4, 3
|
||||
li 3, 0
|
||||
b libucontext_swapcontext@local
|
||||
b __libucontext_swapcontext@local
|
||||
|
||||
.weak setcontext
|
||||
setcontext = libucontext_setcontext
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
* from the use of this software.
|
||||
*/
|
||||
|
||||
.global libucontext_swapcontext
|
||||
libucontext_swapcontext:
|
||||
.global __libucontext_swapcontext
|
||||
__libucontext_swapcontext:
|
||||
li 0, 249 # SYS_swapcontext
|
||||
li 5, 1184 # sizeof(ucontext_t)
|
||||
sc
|
||||
|
@ -21,3 +21,6 @@ libucontext_swapcontext:
|
|||
|
||||
.weak swapcontext
|
||||
swapcontext = libucontext_swapcontext
|
||||
|
||||
.weak libucontext_swapcontext
|
||||
libucontext_swapcontext = __libucontext_swapcontext
|
||||
|
|
Loading…
Reference in New Issue