add previous ABI symbols

pull/25/head
Ariadne Conill 2021-01-08 02:30:50 -07:00
parent 5e6e421c54
commit 39a2958561
38 changed files with 38 additions and 0 deletions

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
str xzr, [x0, #REG_OFFSET(0)]

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
/* restore GPRs */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
str xzr, [x0, #REG_OFFSET(0)]

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
/* copy all of the current registers into the ucontext structure */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
/* copy all of the current registers into the ucontext structure */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
/* copy all of the current registers into the ucontext structure */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
move.l 4(%sp), %a0 /* load ucontext_t pointer from stack */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
move.l 4(%sp), %a0 /* load ucontext_t pointer from stack */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
move.l 4(%sp), %a0 /* load save ucontext_t pointer from stack */

View File

@ -15,6 +15,7 @@ LOCALSZ = 1
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
/* copy $gp, $sp, $fp to temporary registers so we don't clobber them */

View File

@ -22,6 +22,7 @@ A3_OFF = FRAMESZ + (3 * REG_SZ)
*/
ALIAS(makecontext, libucontext_makecontext)
ALIAS(__makecontext, libucontext_makecontext)
FUNC(libucontext_makecontext)
PUSH_FRAME(libucontext_makecontext)

View File

@ -15,6 +15,7 @@ LOCALSZ = 1
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
PUSH_FRAME(libucontext_setcontext)

View File

@ -17,6 +17,7 @@ LOCALSZ = 2
A1_OFFSET = FRAMESZ - (1 * REG_SZ)
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
/* copy $gp, $sp, $fp to temporary registers so we don't clobber them */

View File

@ -15,6 +15,7 @@ LOCALSZ = 1
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
/* copy $gp, $sp, $fp to temporary registers so we don't clobber them */

View File

@ -27,6 +27,7 @@ A7_OFF = FRAMESZ - (1 * REG_SZ)
*/
ALIAS(makecontext, libucontext_makecontext)
ALIAS(__makecontext, libucontext_makecontext)
FUNC(libucontext_makecontext)
PUSH_FRAME(libucontext_makecontext)

View File

@ -15,6 +15,7 @@ LOCALSZ = 1
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
PUSH_FRAME(libucontext_setcontext)

View File

@ -17,6 +17,7 @@ LOCALSZ = 2
A1_OFFSET = FRAMESZ - (1 * REG_SZ)
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
/* copy $gp, $sp, $fp to temporary registers so we don't clobber them */

View File

@ -13,6 +13,7 @@
#include "common-defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
.hidden __libucontext_swapcontext
FUNC(libucontext_getcontext)

View File

@ -13,6 +13,7 @@
#include "common-defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
.hidden __libucontext_swapcontext
FUNC(libucontext_setcontext)

View File

@ -13,6 +13,7 @@
#include "common-defs.h"
ALIAS(swapcontext, __libucontext_swapcontext)
ALIAS(__swapcontext, __libucontext_swapcontext)
ALIAS(libucontext_swapcontext, __libucontext_swapcontext)
FUNC(__libucontext_swapcontext)

View File

@ -13,6 +13,7 @@
#include "common-defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
.hidden __libucontext_swapcontext
FUNC(libucontext_getcontext)

View File

@ -13,6 +13,7 @@
#include "common-defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
.hidden __libucontext_swapcontext
FUNC(libucontext_setcontext)

View File

@ -13,6 +13,7 @@
#include "common-defs.h"
ALIAS(swapcontext, __libucontext_swapcontext)
ALIAS(__swapcontext, __libucontext_swapcontext)
ALIAS(libucontext_swapcontext, __libucontext_swapcontext)
FUNC(__libucontext_swapcontext)

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
sd ra, REG_OFFSET(REG_PC)(a0)

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
/* move $a0 to $t0 to avoid clobbering. */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
/* move $a1 to $t0 to avoid clobbering. */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
lgr %r1, %r2 /* use %r1 as our working register */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
lgr %r1, %r2 /* use %r1 as our working register */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
lgr %r1, %r2 /* use %r1 to save current context to */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
mov r4, r0 /* move r4 to r0, and increment by REG_OFFSET(REG_MACL) + REG_SZ. */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
mov r4, r0

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
mov r4, r0 /* move r4 to r0, and increment by REG_OFFSET(REG_MACL) + REG_SZ. */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
/* load address of the ucontext structure */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
/* load address of the ucontext structure */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
/* load address of the ucontext structure */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(getcontext, libucontext_getcontext)
ALIAS(__getcontext, libucontext_getcontext)
FUNC(libucontext_getcontext)
/* copy all of the current registers into the ucontext structure */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(setcontext, libucontext_setcontext)
ALIAS(__setcontext, libucontext_setcontext)
FUNC(libucontext_setcontext)
/* set all of the registers */

View File

@ -13,6 +13,7 @@
#include "defs.h"
ALIAS(swapcontext, libucontext_swapcontext)
ALIAS(__swapcontext, libucontext_swapcontext)
FUNC(libucontext_swapcontext)
/* copy all of the current registers into the ucontext structure pointed by