|
@@ -104,6 +104,18 @@ static void error(char *x)
|
|
|
while(1); /* Halt */
|
|
|
}
|
|
|
|
|
|
+unsigned long __stack_chk_guard;
|
|
|
+
|
|
|
+void __stack_chk_guard_setup(void)
|
|
|
+{
|
|
|
+ __stack_chk_guard = 0x000a0dff;
|
|
|
+}
|
|
|
+
|
|
|
+void __stack_chk_fail(void)
|
|
|
+{
|
|
|
+ error("stack-protector: Kernel stack is corrupted\n");
|
|
|
+}
|
|
|
+
|
|
|
#ifdef CONFIG_SUPERH64
|
|
|
#define stackalign 8
|
|
|
#else
|
|
@@ -118,6 +130,8 @@ void decompress_kernel(void)
|
|
|
{
|
|
|
unsigned long output_addr;
|
|
|
|
|
|
+ __stack_chk_guard_setup();
|
|
|
+
|
|
|
#ifdef CONFIG_SUPERH64
|
|
|
output_addr = (CONFIG_MEMORY_START + 0x2000);
|
|
|
#else
|