diff options
author | Michal Simek <monstr@monstr.eu> | 2010-03-23 03:09:32 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-04-01 02:38:24 -0400 |
commit | 13851966da54be8e37863aa93ee2c8f3d3a3186a (patch) | |
tree | 465ee4e4fc90d3afd9372a642c1abd35a5d48662 /arch/microblaze/lib | |
parent | e84452dd9ff517bd3028f6444d000727cd39e783 (diff) |
microblaze: Add .type and .size to ASM functions
Cachegrind analysis need this fix to be able to log asm functions.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/lib')
-rw-r--r-- | arch/microblaze/lib/fastcopy.S | 6 | ||||
-rw-r--r-- | arch/microblaze/lib/uaccess_old.S | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/arch/microblaze/lib/fastcopy.S b/arch/microblaze/lib/fastcopy.S index 02e3ab4eddf3..fdc48bb065d8 100644 --- a/arch/microblaze/lib/fastcopy.S +++ b/arch/microblaze/lib/fastcopy.S | |||
@@ -30,8 +30,9 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include <linux/linkage.h> | 32 | #include <linux/linkage.h> |
33 | 33 | .text | |
34 | .globl memcpy | 34 | .globl memcpy |
35 | .type memcpy, @function | ||
35 | .ent memcpy | 36 | .ent memcpy |
36 | 37 | ||
37 | memcpy: | 38 | memcpy: |
@@ -345,9 +346,11 @@ a_done: | |||
345 | rtsd r15, 8 | 346 | rtsd r15, 8 |
346 | nop | 347 | nop |
347 | 348 | ||
349 | .size memcpy, . - memcpy | ||
348 | .end memcpy | 350 | .end memcpy |
349 | /*----------------------------------------------------------------------------*/ | 351 | /*----------------------------------------------------------------------------*/ |
350 | .globl memmove | 352 | .globl memmove |
353 | .type memmove, @function | ||
351 | .ent memmove | 354 | .ent memmove |
352 | 355 | ||
353 | memmove: | 356 | memmove: |
@@ -659,4 +662,5 @@ d_done: | |||
659 | rtsd r15, 8 | 662 | rtsd r15, 8 |
660 | nop | 663 | nop |
661 | 664 | ||
665 | .size memmove, . - memmove | ||
662 | .end memmove | 666 | .end memmove |
diff --git a/arch/microblaze/lib/uaccess_old.S b/arch/microblaze/lib/uaccess_old.S index 67f991c14b8a..b327524a8032 100644 --- a/arch/microblaze/lib/uaccess_old.S +++ b/arch/microblaze/lib/uaccess_old.S | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | .text | 23 | .text |
24 | .globl __strncpy_user; | 24 | .globl __strncpy_user; |
25 | .type __strncpy_user, @function | ||
25 | .align 4; | 26 | .align 4; |
26 | __strncpy_user: | 27 | __strncpy_user: |
27 | 28 | ||
@@ -50,6 +51,7 @@ __strncpy_user: | |||
50 | 3: | 51 | 3: |
51 | rtsd r15,8 | 52 | rtsd r15,8 |
52 | nop | 53 | nop |
54 | .size __strncpy_user, . - __strncpy_user | ||
53 | 55 | ||
54 | 56 | ||
55 | .section .fixup, "ax" | 57 | .section .fixup, "ax" |
@@ -72,6 +74,7 @@ __strncpy_user: | |||
72 | 74 | ||
73 | .text | 75 | .text |
74 | .globl __strnlen_user; | 76 | .globl __strnlen_user; |
77 | .type __strnlen_user, @function | ||
75 | .align 4; | 78 | .align 4; |
76 | __strnlen_user: | 79 | __strnlen_user: |
77 | addik r3,r6,0 | 80 | addik r3,r6,0 |
@@ -90,6 +93,7 @@ __strnlen_user: | |||
90 | 3: | 93 | 3: |
91 | rtsd r15,8 | 94 | rtsd r15,8 |
92 | nop | 95 | nop |
96 | .size __strnlen_user, . - __strnlen_user | ||
93 | 97 | ||
94 | 98 | ||
95 | .section .fixup,"ax" | 99 | .section .fixup,"ax" |
@@ -108,6 +112,7 @@ __strnlen_user: | |||
108 | */ | 112 | */ |
109 | .text | 113 | .text |
110 | .globl __copy_tofrom_user; | 114 | .globl __copy_tofrom_user; |
115 | .type __copy_tofrom_user, @function | ||
111 | .align 4; | 116 | .align 4; |
112 | __copy_tofrom_user: | 117 | __copy_tofrom_user: |
113 | /* | 118 | /* |
@@ -129,6 +134,7 @@ __copy_tofrom_user: | |||
129 | 3: | 134 | 3: |
130 | rtsd r15,8 | 135 | rtsd r15,8 |
131 | nop | 136 | nop |
137 | .size __copy_tofrom_user, . - __copy_tofrom_user | ||
132 | 138 | ||
133 | 139 | ||
134 | .section __ex_table,"a" | 140 | .section __ex_table,"a" |