summaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-07-14 15:10:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2021-01-03 20:05:13 -0500
commite51ea5442996261d4bc3a5b934d27cc0ce6a991c (patch)
treeea325b682a9c327cb6d8592efd4a729c2d83086c /arch/sparc
parent5c8fe583cce542aa0b84adc939ce85293de36e5e (diff)
sparc32: don't bother with lookup_fault() in __bzero()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/lib/memset.S15
1 files changed, 3 insertions, 12 deletions
diff --git a/arch/sparc/lib/memset.S b/arch/sparc/lib/memset.S
index b89d42b29e34..725041c5224a 100644
--- a/arch/sparc/lib/memset.S
+++ b/arch/sparc/lib/memset.S
@@ -19,7 +19,7 @@
98: x,y; \
.section .fixup,ALLOC,EXECINSTR; \
.align 4; \
-99: ba 30f; \
+99: retl; \
a, b, %o0; \
.section __ex_table,ALLOC; \
.align 4; \
@@ -194,24 +194,15 @@ __memset_end:
1:
sll %g2, 3, %g2
add %o3, %o1, %o0
- b 30f
+ retl
sub %o0, %g2, %o0
21:
mov 8, %o0
and %o1, 7, %o1
sub %o0, %g2, %o0
sll %o0, 3, %o0
- b 30f
+ retl
add %o0, %o1, %o0
-30:
-/* %o4 is faulting address, %o5 is %pc where fault occurred */
- save %sp, -104, %sp
- mov %i5, %o0
- mov %i7, %o1
- call lookup_fault
- mov %i4, %o2
- ret
- restore
.globl __bzero_end
__bzero_end: