提交 d1878f16 编写于 作者: M Mao Minkai 提交者: guzitao

sw64: adjust layout of clear_user.S

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5XTLH

--------------------------------

Adjust layout of clear_user.S to make sure we can get the correct
symbol name when tracing.
Signed-off-by: NMao Minkai <maominkai@wxiat.com>
Reviewed-by: NHe Sheng <hesheng@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 d769ce14
...@@ -27,6 +27,38 @@ ...@@ -27,6 +27,38 @@
.ent __clear_user .ent __clear_user
.frame $30, 0, $26 .frame $30, 0, $26
.prologue 0 .prologue 0
__clear_user:
and $17, $17, $0
and $16, 7, $4
beq $0, $zerolength
addl $0, $4, $1
and $1, 7, $2
srl $1, 3, $1
beq $4, $loop
subl $4, 8, $4
addl $0, $4, $0
beq $1, $oneword
$head:
EX(stb $31, 0($16))
addl $16, 1, $16
addl $4, 1, $4
bne $4, $head
subl $1, 1, $1
br $loop
unop
$oneword:
EX(stb $31, 0($16))
addl $16, 1, $16
addl $4, 1, $4
bne $4, $oneword
clr $0
$zerolength:
$exception:
ret $31, ($26), 1
$loop: $loop:
and $1, 3, $4 and $1, 3, $4
...@@ -66,37 +98,5 @@ $tail: ...@@ -66,37 +98,5 @@ $tail:
clr $0 clr $0
ret $31, ($26), 1 ret $31, ($26), 1
__clear_user:
and $17, $17, $0
and $16, 7, $4
beq $0, $zerolength
addl $0, $4, $1
and $1, 7, $2
srl $1, 3, $1
beq $4, $loop
subl $4, 8, $4
addl $0, $4, $0
beq $1, $oneword
$head:
EX(stb $31, 0($16))
addl $16, 1, $16
addl $4, 1, $4
bne $4, $head
subl $1, 1, $1
br $loop
unop
$oneword:
EX(stb $31, 0($16))
addl $16, 1, $16
addl $4, 1, $4
bne $4, $oneword
clr $0
$zerolength:
$exception:
ret $31, ($26), 1
.end __clear_user .end __clear_user
EXPORT_SYMBOL(__clear_user) EXPORT_SYMBOL(__clear_user)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册