summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKévin Petit <kevin.petit@arm.com>2015-03-05 14:09:20 +0000
committerKévin Petit <kevin.petit@arm.com>2015-03-05 14:09:20 +0000
commitd0abc58a23af17ce9f253068aaca89a69f799c4e (patch)
treea96566ca7fa87037b49c2c3a16217e4ff418b74b /drivers
parent769adf29c77f18b3befbd183456d65ee4a9afb0d (diff)
Fix the declaration of assembly functions
In order for the symbol table in the ELF file to contain the size of functions written in assembly, it is necessary to report it to the assembler using the .size directive. Using .func/.endfunc isn't strictly necessary but has the advantage of making the assembler fail if .endfunc is omitted. Change-Id: I086a01a78958c0109644b1397f5240eae818d61b Signed-off-by: Kévin Petit <kevin.petit@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/arm/pl011/pl011_console.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/arm/pl011/pl011_console.S b/drivers/arm/pl011/pl011_console.S
index 5ff1582..0c781a2 100644
--- a/drivers/arm/pl011/pl011_console.S
+++ b/drivers/arm/pl011/pl011_console.S
@@ -64,6 +64,7 @@ func console_init
adrp x3, console_base
str x0, [x3, :lo12:console_base]
b console_core_init
+endfunc console_init
/* -----------------------------------------------
* int console_core_init(unsigned long base_addr,
@@ -107,6 +108,7 @@ func console_core_init
mov w0, #1
init_fail:
ret
+endfunc console_core_init
/* ---------------------------------------------
* int console_putc(int c)
@@ -122,6 +124,7 @@ func console_putc
adrp x2, console_base
ldr x1, [x2, :lo12:console_base]
b console_core_putc
+endfunc console_putc
/* --------------------------------------------------------
* int console_core_putc(int c, unsigned int base_addr)
@@ -154,6 +157,7 @@ func console_core_putc
putc_error:
mov w0, #-1
ret
+endfunc console_core_putc
/* ---------------------------------------------
* int console_getc(void)
@@ -176,3 +180,4 @@ func console_getc
getc_error:
mov w0, #-1
ret
+endfunc console_getc