diff options
| -rw-r--r-- | arch/sh/boot/compressed/head.S | 3 | ||||
| -rw-r--r-- | arch/sh/boot/compressed/misc.c | 3 | ||||
| -rw-r--r-- | arch/sh/kernel/head.S | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/arch/sh/boot/compressed/head.S b/arch/sh/boot/compressed/head.S index 4c26a192277d..a8399b013729 100644 --- a/arch/sh/boot/compressed/head.S +++ b/arch/sh/boot/compressed/head.S | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | .text | 8 | .text |
| 9 | 9 | ||
| 10 | #include <linux/linkage.h> | 10 | #include <linux/linkage.h> |
| 11 | #include <asm/page.h> | ||
| 11 | 12 | ||
| 12 | .global startup | 13 | .global startup |
| 13 | startup: | 14 | startup: |
| @@ -97,7 +98,7 @@ init_stack_addr: | |||
| 97 | decompress_kernel_addr: | 98 | decompress_kernel_addr: |
| 98 | .long decompress_kernel | 99 | .long decompress_kernel |
| 99 | kernel_start_addr: | 100 | kernel_start_addr: |
| 100 | .long _text+0x1000 | 101 | .long _text+PAGE_SIZE |
| 101 | 102 | ||
| 102 | .align 9 | 103 | .align 9 |
| 103 | fake_headers_as_bzImage: | 104 | fake_headers_as_bzImage: |
diff --git a/arch/sh/boot/compressed/misc.c b/arch/sh/boot/compressed/misc.c index 35452d85b7f7..df65e305acf7 100644 --- a/arch/sh/boot/compressed/misc.c +++ b/arch/sh/boot/compressed/misc.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | #include <asm/uaccess.h> | 14 | #include <asm/uaccess.h> |
| 15 | #include <asm/addrspace.h> | 15 | #include <asm/addrspace.h> |
| 16 | #include <asm/page.h> | ||
| 16 | #ifdef CONFIG_SH_STANDARD_BIOS | 17 | #ifdef CONFIG_SH_STANDARD_BIOS |
| 17 | #include <asm/sh_bios.h> | 18 | #include <asm/sh_bios.h> |
| 18 | #endif | 19 | #endif |
| @@ -229,7 +230,7 @@ long* stack_start = &user_stack[STACK_SIZE]; | |||
| 229 | void decompress_kernel(void) | 230 | void decompress_kernel(void) |
| 230 | { | 231 | { |
| 231 | output_data = 0; | 232 | output_data = 0; |
| 232 | output_ptr = P2SEGADDR((unsigned long)&_text+0x1000); | 233 | output_ptr = P2SEGADDR((unsigned long)&_text+PAGE_SIZE); |
| 233 | free_mem_ptr = (unsigned long)&_end; | 234 | free_mem_ptr = (unsigned long)&_end; |
| 234 | free_mem_end_ptr = free_mem_ptr + HEAP_SIZE; | 235 | free_mem_end_ptr = free_mem_ptr + HEAP_SIZE; |
| 235 | 236 | ||
diff --git a/arch/sh/kernel/head.S b/arch/sh/kernel/head.S index 6aca4bc6ec5d..71a3ad7d283e 100644 --- a/arch/sh/kernel/head.S +++ b/arch/sh/kernel/head.S | |||
| @@ -33,7 +33,8 @@ ENTRY(empty_zero_page) | |||
| 33 | .long 0x00360000 /* INITRD_START */ | 33 | .long 0x00360000 /* INITRD_START */ |
| 34 | .long 0x000a0000 /* INITRD_SIZE */ | 34 | .long 0x000a0000 /* INITRD_SIZE */ |
| 35 | .long 0 | 35 | .long 0 |
| 36 | .balign PAGE_SIZE,0,PAGE_SIZE | 36 | 1: |
| 37 | .skip PAGE_SIZE - empty_zero_page - 1b | ||
| 37 | 38 | ||
| 38 | .text | 39 | .text |
| 39 | /* | 40 | /* |
