]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Blackfin: stick ins/outs funcs into their own .text section
authorMike Frysinger <vapier@gentoo.org>
Mon, 15 Nov 2010 11:42:42 +0000 (06:42 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 18 Nov 2010 09:38:19 +0000 (04:38 -0500)
This lets the linker garbage collect these functions when they aren't
actually used by placing them into the standard .text.<func> section.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/lib/ins.S
arch/blackfin/lib/outs.S

index 4519596420e50debc3a111ef56c304cfd41c3509..3ac6d84548642be4656cefb12e576ac920314cbd 100644 (file)
@@ -71,6 +71,7 @@
  */
 
 #define COMMON_INS(func, ops) \
+.section .text._ins##func; \
 ENTRY(_ins##func) \
        P0 = R0;        /* P0 = port */ \
        CLI_OUTER;      /* 3 instructions before first read access */ \
index 90c6033c9e5f156ad51bc08af1a4eb7e8ccbecaa..253d4c3e417b47a2a92e503bec896b0d4a9d9457 100644 (file)
@@ -12,6 +12,7 @@
 
 .align 2
 
+.section .text._outsl
 ENTRY(_outsl)
        P0 = R0;        /* P0 = port */
        P1 = R1;        /* P1 = address */
@@ -23,6 +24,7 @@ ENTRY(_outsl)
        RTS;
 ENDPROC(_outsl)
 
+.section .text._outsw
 ENTRY(_outsw)
        P0 = R0;        /* P0 = port */
        P1 = R1;        /* P1 = address */
@@ -34,6 +36,7 @@ ENTRY(_outsw)
        RTS;
 ENDPROC(_outsw)
 
+.section .text._outsb
 ENTRY(_outsb)
        P0 = R0;        /* P0 = port */
        P1 = R1;        /* P1 = address */
@@ -45,6 +48,7 @@ ENTRY(_outsb)
        RTS;
 ENDPROC(_outsb)
 
+.section .text._outsw_8
 ENTRY(_outsw_8)
        P0 = R0;        /* P0 = port */
        P1 = R1;        /* P1 = address */