--- zzzz-none-000/linux-3.10.107/arch/h8300/boot/compressed/head.S 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/h8300/boot/compressed/head.S 2021-02-04 17:41:59.000000000 +0000 @@ -4,15 +4,13 @@ * Copyright (C) 2006 Yoshinori Sato */ - .h8300h #include -#define SRAM_START 0xff4000 - - .section .text..startup + .section .text..startup,"ax" .global startup startup: - mov.l #SRAM_START+0x8000, sp + mov.l #startup, sp + mov.l er0, er4 mov.l #__sbss, er0 mov.l #__ebss, er1 sub.l er0, er1 @@ -24,8 +22,9 @@ adds #4, er0 dec.l #1, er1 bne 1b - jsr @_decompress_kernel - jmp @0x400000 + jsr @decompress_kernel + mov.l er4, er0 + jmp @output .align 9 fake_headers_as_bzImage: @@ -45,3 +44,5 @@ .long 0x100000 ; 0x100000 = default for big kernel .long 0 ; address of loaded ramdisk image .long 0 ; its size in bytes + + .end