ioreadsb: put the whole ioreadsb function into the .text.readsb section
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
ccc2adda4c
commit
9762ce53b2
|
@ -10,6 +10,8 @@
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
#include <asm/assembler.h>
|
#include <asm/assembler.h>
|
||||||
|
|
||||||
|
.section .text.readsb
|
||||||
|
|
||||||
.Linsb_align: rsb ip, ip, #4
|
.Linsb_align: rsb ip, ip, #4
|
||||||
cmp ip, r2
|
cmp ip, r2
|
||||||
movgt ip, r2
|
movgt ip, r2
|
||||||
|
@ -23,8 +25,6 @@
|
||||||
subs r2, r2, ip
|
subs r2, r2, ip
|
||||||
bne .Linsb_aligned
|
bne .Linsb_aligned
|
||||||
|
|
||||||
.section .text.readsb
|
|
||||||
|
|
||||||
ENTRY(readsb)
|
ENTRY(readsb)
|
||||||
teq r2, #0 @ do we have to check for the zero len?
|
teq r2, #0 @ do we have to check for the zero len?
|
||||||
moveq pc, lr
|
moveq pc, lr
|
||||||
|
|
Loading…
Reference in New Issue