提交 4761e63b 编写于 作者: R Rich Felker

new dlstart stage-2 chaining for or1k

上级 cd7159e7
......@@ -13,3 +13,12 @@
#define CRTJMP(pc,sp) __asm__ __volatile__( \
"l.jr %0 ; l.ori r1,%1,0" : : "r"(pc), "r"(sp) : "memory" )
#define GETFUNCSYM(fp, sym, got) __asm__ ( \
".hidden " #sym " \n" \
" l.jal 1f \n" \
" l.nop \n" \
" .word " #sym "-. \n" \
"1: l.lwz %0, 0(r9) \n" \
" l.add %0, %0, r9 \n" \
: "=r"(*(fp)) : : "memory", "r9" )
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册