serial: xilinx_uartps: fix bad register write in console_write
[linux-2.6-xlnx.git] / arch / sparc / lib / strncmp_64.S
blob0656627166f38e3070731893beeba2acbad1b571
1 /*
2  * Sparc64 optimized strncmp code.
3  *
4  * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
5  */
7 #include <linux/linkage.h>
8 #include <asm/asi.h>
10         .text
11 ENTRY(strncmp)
12         brlez,pn %o2, 3f
13          lduba  [%o0] (ASI_PNF), %o3
15         add     %o0, 1, %o0
16         ldub    [%o1], %o4
17         brz,pn  %o3, 2f
18          add    %o1, 1, %o1
19         cmp     %o3, %o4
20         bne,pn  %icc, 2f
21          subcc  %o2, 1, %o2
22         bne,a,pt %xcc, 1b
23          ldub   [%o0], %o3
25         retl
26          sub    %o3, %o4, %o0
28         retl
29          clr    %o0
30 ENDPROC(strncmp)