| .. | .. |
|---|
| 111 | 111 | error("stack-protector: Kernel stack is corrupted\n"); |
|---|
| 112 | 112 | } |
|---|
| 113 | 113 | |
|---|
| 114 | | -#ifdef CONFIG_SUPERH64 |
|---|
| 115 | | -#define stackalign 8 |
|---|
| 116 | | -#else |
|---|
| 114 | +/* Needed because vmlinux.lds.h references this */ |
|---|
| 115 | +void ftrace_stub(void) |
|---|
| 116 | +{ |
|---|
| 117 | +} |
|---|
| 118 | + |
|---|
| 117 | 119 | #define stackalign 4 |
|---|
| 118 | | -#endif |
|---|
| 119 | 120 | |
|---|
| 120 | 121 | #define STACK_SIZE (4096) |
|---|
| 121 | 122 | long __attribute__ ((aligned(stackalign))) user_stack[STACK_SIZE]; |
|---|
| .. | .. |
|---|
| 125 | 126 | { |
|---|
| 126 | 127 | unsigned long output_addr; |
|---|
| 127 | 128 | |
|---|
| 128 | | -#ifdef CONFIG_SUPERH64 |
|---|
| 129 | | - output_addr = (CONFIG_MEMORY_START + 0x2000); |
|---|
| 130 | | -#else |
|---|
| 131 | 129 | output_addr = __pa((unsigned long)&_text+PAGE_SIZE); |
|---|
| 132 | 130 | #if defined(CONFIG_29BIT) |
|---|
| 133 | 131 | output_addr |= P2SEG; |
|---|
| 134 | | -#endif |
|---|
| 135 | 132 | #endif |
|---|
| 136 | 133 | |
|---|
| 137 | 134 | output = (unsigned char *)output_addr; |
|---|