提交 70620186 编写于 作者: S Stephen Rothwell

powerpc: create 32 bit LOADADDR macro

and use it in misc_32.S
Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
上级 4920960f
......@@ -43,8 +43,7 @@ _GLOBAL(reloc_offset)
mflr r0
bl 1f
1: mflr r3
lis r4,1b@ha
addi r4,r4,1b@l
LOADADDR(r4,1b)
subf r3,r4,r3
mtlr r0
blr
......@@ -56,8 +55,7 @@ _GLOBAL(add_reloc_offset)
mflr r0
bl 1f
1: mflr r5
lis r4,1b@ha
addi r4,r4,1b@l
LOADADDR(r4,1b)
subf r5,r4,r5
add r3,r3,r5
mtlr r0
......
......@@ -193,6 +193,10 @@ GLUE(.,name):
#define CMPI cmpdi
#else /* 32-bit */
#define LOADADDR(rn,name) \
lis rn,name@ha \
addi rn,rn,name@l
#define LOADBASE(rn,name) \
lis rn,name@ha
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册