hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/sh/boot/compressed/misc.c
....@@ -111,11 +111,12 @@
111111 error("stack-protector: Kernel stack is corrupted\n");
112112 }
113113
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
+
117119 #define stackalign 4
118
-#endif
119120
120121 #define STACK_SIZE (4096)
121122 long __attribute__ ((aligned(stackalign))) user_stack[STACK_SIZE];
....@@ -125,13 +126,9 @@
125126 {
126127 unsigned long output_addr;
127128
128
-#ifdef CONFIG_SUPERH64
129
- output_addr = (CONFIG_MEMORY_START + 0x2000);
130
-#else
131129 output_addr = __pa((unsigned long)&_text+PAGE_SIZE);
132130 #if defined(CONFIG_29BIT)
133131 output_addr |= P2SEG;
134
-#endif
135132 #endif
136133
137134 output = (unsigned char *)output_addr;