~ubuntu-branches/ubuntu/karmic/linux-ports/karmic

« back to all changes in this revision

Viewing changes to arch/sparc/lib/strncmp.S

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich, Luke Yelavich, Michael Casadevall, Tim Gardner, Upstream Kernel Changes
  • Date: 2009-05-06 18:18:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090506181855-t00baeevpnvd9o7a
Tags: 2.6.30-1.1
[ Luke Yelavich ]
* initial release for karmic
* SAUCE: rebase-ports - adjust for the karmic ports kernel
* SAUCE: rebase-ports - also remove abi dirs/files on rebase
* Update configs after rebase against mainline Jaunty tree
* [Config] Disable CONFIG_BLK_DEV_UB and CONFIG_USB_LIBUSUAL as per
  mainline jaunty
* forward-port patch to drbd for powerpc compilation
* [Config] disable CONFIG_LENOVO_SL_LAPTOP for i386 due to FTBFS
* add .o files found in arch/powerpc/lib to all powerpc kernel header
  packages
* [Config] enable CONFIG_DRM_I915_KMS for i386 as per karmic mainline

[ Michael Casadevall ]

* Disable kgdb on sparc64
* [sparc] [Config] Disable GPIO LEDS
* [ia64] Rename -ia64-generic to -ia64 in line with other architectures
* Correct kernel image path for sparc builds
* [hppa] Fix HPPA config files to build modules for all udebian

Rebase on top of karmic mainline 2.6.30-1.1

[ Tim Gardner ]

* [Config] armel: disable staging drivers, fixes FTBS
* [Config] armel imx51: Disable CONFIG_MTD_NAND_MXC, fixes FTBS

[ Upstream Kernel Changes ]

* mpt2sas: Change reset_type enum to avoid namespace collision.
  Submitted upstream.

* Initial release after rebasing against v2.6.30-rc3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * strncmp.S: Hand optimized Sparc assembly of GCC output from GNU libc
3
 
 *            generic strncmp routine.
4
 
 */
5
 
 
6
 
        .text
7
 
        .align 4
8
 
        .global __strncmp, strncmp
9
 
__strncmp:
10
 
strncmp:
11
 
        mov     %o0, %g3
12
 
        mov     0, %o3
13
 
 
14
 
        cmp     %o2, 3
15
 
        ble     7f
16
 
         mov    0, %g2
17
 
 
18
 
        sra     %o2, 2, %o4
19
 
        ldub    [%g3], %o3
20
 
 
21
 
0:
22
 
        ldub    [%o1], %g2
23
 
        add     %g3, 1, %g3
24
 
        and     %o3, 0xff, %o0
25
 
 
26
 
        cmp     %o0, 0
27
 
        be      8f
28
 
         add    %o1, 1, %o1
29
 
 
30
 
        cmp     %o0, %g2
31
 
        be,a    1f
32
 
         ldub   [%g3], %o3
33
 
 
34
 
        retl
35
 
         sub    %o0, %g2, %o0
36
 
 
37
 
1:
38
 
        ldub    [%o1], %g2
39
 
        add     %g3,1, %g3
40
 
        and     %o3, 0xff, %o0
41
 
 
42
 
        cmp     %o0, 0
43
 
        be      8f
44
 
         add    %o1, 1, %o1
45
 
 
46
 
        cmp     %o0, %g2
47
 
        be,a    1f
48
 
         ldub   [%g3], %o3
49
 
 
50
 
        retl
51
 
         sub    %o0, %g2, %o0
52
 
 
53
 
1:
54
 
        ldub    [%o1], %g2
55
 
        add     %g3, 1, %g3
56
 
        and     %o3, 0xff, %o0
57
 
 
58
 
        cmp     %o0, 0
59
 
        be      8f
60
 
         add    %o1, 1, %o1
61
 
 
62
 
        cmp     %o0, %g2
63
 
        be,a    1f
64
 
         ldub   [%g3], %o3
65
 
 
66
 
        retl
67
 
         sub    %o0, %g2, %o0
68
 
 
69
 
1:
70
 
        ldub    [%o1], %g2
71
 
        add     %g3, 1, %g3
72
 
        and     %o3, 0xff, %o0
73
 
 
74
 
        cmp     %o0, 0
75
 
        be      8f
76
 
         add    %o1, 1, %o1
77
 
 
78
 
        cmp     %o0, %g2
79
 
        be      1f
80
 
         add    %o4, -1, %o4
81
 
 
82
 
        retl
83
 
         sub    %o0, %g2, %o0
84
 
 
85
 
1:
86
 
 
87
 
        cmp     %o4, 0
88
 
        bg,a    0b
89
 
         ldub   [%g3], %o3
90
 
 
91
 
        b       7f
92
 
         and    %o2, 3, %o2
93
 
 
94
 
9:
95
 
        ldub    [%o1], %g2
96
 
        add     %g3, 1, %g3
97
 
        and     %o3, 0xff, %o0
98
 
 
99
 
        cmp     %o0, 0
100
 
        be      8f
101
 
         add    %o1, 1, %o1
102
 
 
103
 
        cmp     %o0, %g2
104
 
        be      7f
105
 
         add    %o2, -1, %o2
106
 
 
107
 
8:
108
 
        retl
109
 
         sub    %o0, %g2, %o0
110
 
 
111
 
7:
112
 
        cmp     %o2, 0
113
 
        bg,a    9b
114
 
         ldub   [%g3], %o3
115
 
 
116
 
        and     %g2, 0xff, %o0
117
 
        retl
118
 
         sub    %o3, %o0, %o0