aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/lib
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-03-23 03:09:32 -0400
committerMichal Simek <monstr@monstr.eu>2010-04-01 02:38:24 -0400
commit13851966da54be8e37863aa93ee2c8f3d3a3186a (patch)
tree465ee4e4fc90d3afd9372a642c1abd35a5d48662 /arch/microblaze/lib
parente84452dd9ff517bd3028f6444d000727cd39e783 (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.S6
-rw-r--r--arch/microblaze/lib/uaccess_old.S6
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
37memcpy: 38memcpy:
@@ -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
353memmove: 356memmove:
@@ -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:
503: 513:
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:
903: 933:
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:
1293: 1343:
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"