Commit 69144341 authored by Miles Bader's avatar Miles Bader Committed by Linus Torvalds

[PATCH] Add asm macros on v850 so the size of asm data objects can be recorded

Add asm macros on v850 so the size of asm data objects can be recorded
[This just makes it easier to see the sizes using readelf or whatever]
parent d30383ee
......@@ -771,8 +771,7 @@ C_END(switch_thread)
.data
.align 4
.globl CSYM(trap_table)
CSYM(trap_table):
C_DATA(trap_table):
.long bad_trap_wrapper // trap 0, doesn't use trap table.
.long syscall_long // trap 1, `long' syscall.
.long bad_trap_wrapper
......@@ -789,13 +788,13 @@ CSYM(trap_table):
.long bad_trap_wrapper
.long bad_trap_wrapper
.long bad_trap_wrapper
C_END(trap_table)
.section .rodata
.align 4
.globl CSYM(sys_call_table)
CSYM(sys_call_table):
C_DATA(sys_call_table):
.long CSYM(sys_ni_syscall) // 0 - old "setup()" system call
.long CSYM(sys_exit)
.long sys_fork_wrapper
......@@ -1003,3 +1002,4 @@ CSYM(sys_call_table):
.long CSYM(sys_ni_syscall) // sys_madvise
.space (NR_syscalls-205)*4
C_END(sys_call_table)
......@@ -118,4 +118,4 @@ C_ENTRY(start):
// Start Linux kernel.
mov hilo(CSYM(machine_halt)), lp
jr CSYM(start_kernel)
END(start)
C_END(start)
......@@ -16,6 +16,10 @@
.globl name; \
.type name,@function; \
name
#define G_DATA(name) \
.globl name; \
.type name,@object; \
name
#define END(name) \
.size name,.-name
......@@ -23,3 +27,6 @@
.align 4; \
.type name,@function; \
name
#define L_DATA(name) \
.type name,@object; \
name
......@@ -20,6 +20,7 @@
#define C_SYMBOL_NAME(name) macrology_paste(_, name)
#define C_SYMBOL_STRING(name) macrology_stringify(C_SYMBOL_NAME(name))
#define C_ENTRY(name) G_ENTRY(C_SYMBOL_NAME(name))
#define C_DATA(name) G_DATA(C_SYMBOL_NAME(name))
#define C_END(name) END(C_SYMBOL_NAME(name))
#endif /* __V850_CLINKAGE_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment