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 ac78910d7416..87e5b6f8f4fc 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -150,6 +150,14 @@ | |||
| 150 | #define TRACE_SYSCALLS() | 150 | #define TRACE_SYSCALLS() |
| 151 | #endif | 151 | #endif |
| 152 | 152 | ||
| 153 | #ifdef CONFIG_SERIAL_EARLYCON | ||
| 154 | #define EARLYCON_TABLE() . = ALIGN(8); \ | ||
| 155 | VMLINUX_SYMBOL(__earlycon_table) = .; \ | ||
| 156 | *(__earlycon_table) \ | ||
| 157 | *(__earlycon_table_end) | ||
| 158 | #else | ||
| 159 | #define EARLYCON_TABLE() | ||
| 160 | #endif | ||
| 153 | 161 | ||
| 154 | #define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name) | 162 | #define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name) |
| 155 | #define __OF_TABLE(cfg, name) ___OF_TABLE(cfg, name) | 163 | #define __OF_TABLE(cfg, name) ___OF_TABLE(cfg, name) |
| @@ -503,6 +511,7 @@ | |||
| 503 | CPU_METHOD_OF_TABLES() \ | 511 | CPU_METHOD_OF_TABLES() \ |
| 504 | KERNEL_DTB() \ | 512 | KERNEL_DTB() \ |
| 505 | IRQCHIP_OF_MATCH_TABLE() \ | 513 | IRQCHIP_OF_MATCH_TABLE() \ |
| 514 | EARLYCON_TABLE() \ | ||
| 506 | EARLYCON_OF_TABLES() | 515 | EARLYCON_OF_TABLES() |
| 507 | 516 | ||
| 508 | #define INIT_TEXT \ | 517 | #define INIT_TEXT \ |
