ppc: fix build with libucontext_ namespacing changes

arm_linker_fix
Ariadne Conill 2020-12-06 14:04:22 +00:00
parent a04dc12d72
commit c10cde83da
5 changed files with 12 additions and 7 deletions

View File

@ -59,4 +59,6 @@
/* lnk register is actually r32 */
#define REG_LNK REG_R36
#include "common-defs.h"
#endif

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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