diff options
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 5c48c58514e5..8bd374d3cf21 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -153,6 +153,14 @@ | |||
153 | #define TRACE_SYSCALLS() | 153 | #define TRACE_SYSCALLS() |
154 | #endif | 154 | #endif |
155 | 155 | ||
156 | #ifdef CONFIG_SERIAL_EARLYCON | ||
157 | #define EARLYCON_TABLE() STRUCT_ALIGN(); \ | ||
158 | VMLINUX_SYMBOL(__earlycon_table) = .; \ | ||
159 | *(__earlycon_table) \ | ||
160 | *(__earlycon_table_end) | ||
161 | #else | ||
162 | #define EARLYCON_TABLE() | ||
163 | #endif | ||
156 | 164 | ||
157 | #define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name) | 165 | #define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name) |
158 | #define __OF_TABLE(cfg, name) ___OF_TABLE(cfg, name) | 166 | #define __OF_TABLE(cfg, name) ___OF_TABLE(cfg, name) |
@@ -508,6 +516,7 @@ | |||
508 | CPUIDLE_METHOD_OF_TABLES() \ | 516 | CPUIDLE_METHOD_OF_TABLES() \ |
509 | KERNEL_DTB() \ | 517 | KERNEL_DTB() \ |
510 | IRQCHIP_OF_MATCH_TABLE() \ | 518 | IRQCHIP_OF_MATCH_TABLE() \ |
519 | EARLYCON_TABLE() \ | ||
511 | EARLYCON_OF_TABLES() | 520 | EARLYCON_OF_TABLES() |
512 | 521 | ||
513 | #define INIT_TEXT \ | 522 | #define INIT_TEXT \ |