提交 9659c422 编写于 作者: Z Zhen Lei 提交者: Zheng Zengkai

Revert "arm64: alternatives: Move length validation in alternative_{insn, endif}"

hulk inclusion
category: performance
bugzilla: https://e.gitee.com/open_euler/issues/list?issue=I4SCW7
CVE: NA

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

This reverts commit c50395ff.

Temporary rollback, which will be backported later so that other patches
can be backported without conflict.
Signed-off-by: NZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 76f5237d
...@@ -119,9 +119,9 @@ static inline void apply_alternatives_module(void *start, size_t length) { } ...@@ -119,9 +119,9 @@ static inline void apply_alternatives_module(void *start, size_t length) { }
.popsection .popsection
.subsection 1 .subsection 1
663: \insn2 663: \insn2
664: .org . - (664b-663b) + (662b-661b) 664: .previous
.org . - (664b-663b) + (662b-661b)
.org . - (662b-661b) + (664b-663b) .org . - (662b-661b) + (664b-663b)
.previous
.endif .endif
.endm .endm
...@@ -191,11 +191,11 @@ static inline void apply_alternatives_module(void *start, size_t length) { } ...@@ -191,11 +191,11 @@ static inline void apply_alternatives_module(void *start, size_t length) { }
*/ */
.macro alternative_endif .macro alternative_endif
664: 664:
.org . - (664b-663b) + (662b-661b)
.org . - (662b-661b) + (664b-663b)
.if .Lasm_alt_mode==0 .if .Lasm_alt_mode==0
.previous .previous
.endif .endif
.org . - (664b-663b) + (662b-661b)
.org . - (662b-661b) + (664b-663b)
.endm .endm
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册