mips64: use ALIAS() macro for aliases
parent
e00902b5b1
commit
8631580fbb
|
@ -14,6 +14,8 @@ LOCALSZ = 1
|
|||
|
||||
#include "defs.h"
|
||||
|
||||
ALIAS(getcontext, __getcontext)
|
||||
|
||||
FUNC(__getcontext)
|
||||
/* copy $gp, $sp, $fp to temporary registers so we don't clobber them */
|
||||
move $a2, $gp
|
||||
|
@ -42,6 +44,3 @@ FUNC(__getcontext)
|
|||
|
||||
jr $ra
|
||||
END(__getcontext)
|
||||
|
||||
.weak getcontext;
|
||||
getcontext = __getcontext;
|
||||
|
|
|
@ -26,6 +26,8 @@ A7_OFF = FRAMESZ - (1 * REG_SZ)
|
|||
* assembly rather than C. Annoying, that...
|
||||
*/
|
||||
|
||||
ALIAS(makecontext, __makecontext)
|
||||
|
||||
FUNC(__makecontext)
|
||||
PUSH_FRAME(__makecontext)
|
||||
|
||||
|
@ -102,7 +104,3 @@ no_more_arguments:
|
|||
|
||||
jr $ra
|
||||
END(__makecontext)
|
||||
|
||||
|
||||
.weak makecontext
|
||||
makecontext = __makecontext;
|
||||
|
|
|
@ -14,6 +14,8 @@ LOCALSZ = 1
|
|||
|
||||
#include "defs.h"
|
||||
|
||||
ALIAS(setcontext, __setcontext)
|
||||
|
||||
FUNC(__setcontext)
|
||||
PUSH_FRAME(__setcontext)
|
||||
|
||||
|
@ -50,6 +52,3 @@ FUNC(__setcontext)
|
|||
|
||||
POP_FRAME(__setcontext)
|
||||
END(__setcontext)
|
||||
|
||||
.weak setcontext;
|
||||
setcontext = __setcontext;
|
||||
|
|
|
@ -16,6 +16,8 @@ LOCALSZ = 2
|
|||
|
||||
A1_OFFSET = FRAMESZ - (1 * REG_SZ)
|
||||
|
||||
ALIAS(swapcontext, __swapcontext)
|
||||
|
||||
FUNC(__swapcontext)
|
||||
/* copy $gp, $sp, $fp to temporary registers so we don't clobber them */
|
||||
move $a2, $gp
|
||||
|
@ -82,6 +84,3 @@ fail:
|
|||
move $v0, $zero
|
||||
jalr $t9
|
||||
END(__swapcontext)
|
||||
|
||||
.weak swapcontext;
|
||||
swapcontext = __swapcontext;
|
||||
|
|
Loading…
Reference in New Issue