android_kernel_xiaomi_sm8350/arch/m32r
Hirokazu Takata 3d60f84934 [PATCH] m32r: fix kernel entry address of vmlinux
This patch fixes the kernel entry point address of vmlinux.

The m32r kernel entry address is 0x08002000 (physical).
But, so far, the ENTRY point written in vmlinux.lds.S was not point
the correct kernel entry address.

(before fix)
    $ objdump -x vmlinux
    vmlinux:     file format elf32-m32r-linux
    vmlinux
    architecture: m32r2, flags 0x00000112:
    EXEC_P, HAS_SYMS, D_PAGED
    start address 0x88002090	/* NG */
        :
    Sections:
    Idx Name          Size      VMA       LMA       File off  Algn
      0 .empty_zero_page 00001000  88001000  88001000  00001000  2**12
                      CONTENTS, ALLOC, LOAD, DATA
      1 .boot         0000008c  88002000  88002000  00002000  2**2
                      CONTENTS, ALLOC, LOAD, READONLY, CODE
      2 .text         001ab694  88002090  88002090  00002090  2**4
                      CONTENTS, ALLOC, LOAD, READONLY, CODE
        :

(after fix)
    $ objdump -x vmlinux
    vmlinux:     file format elf32-m32r-linux
    vmlinux
    architecture: m32r2, flags 0x00000112:
    EXEC_P, HAS_SYMS, D_PAGED
    start address 0x08002000	/* OK */
        :

This fix also remedies the following GDB error message (of gdb-6.4 or after)
at the first operation of kernel debugging:
"Previous frame identical to this frame (corrupt stack?)".

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-11 10:51:20 -08:00
..
boot [PATCH] m32r: bootloader support for OPSPUT platform 2006-12-08 08:28:37 -08:00
kernel [PATCH] m32r: fix kernel entry address of vmlinux 2007-02-11 10:51:20 -08:00
lib
m32104ut [PATCH] m32r: update defconfig files for v2.6.19 2007-02-11 10:51:20 -08:00
m32700ut [PATCH] m32r: update defconfig files for v2.6.19 2007-02-11 10:51:20 -08:00
mappi [PATCH] m32r: update defconfig files for v2.6.19 2007-02-11 10:51:20 -08:00
mappi2 [PATCH] m32r: update defconfig files for v2.6.19 2007-02-11 10:51:20 -08:00
mappi3 [PATCH] m32r: update defconfig files for v2.6.19 2007-02-11 10:51:20 -08:00
mm [PATCH] m32r: fix do_page_fault and update_mmu_cache 2007-02-11 10:51:20 -08:00
oaks32r [PATCH] m32r: update defconfig files for v2.6.19 2007-02-11 10:51:20 -08:00
oprofile
opsput [PATCH] m32r: update defconfig files for v2.6.19 2007-02-11 10:51:20 -08:00
defconfig [PATCH] m32r: update defconfig files for v2.6.19 2007-02-11 10:51:20 -08:00
Kconfig [PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA 2007-02-11 10:51:19 -08:00
Kconfig.debug
Makefile [PATCH] m32r: fix kernel entry address of vmlinux 2007-02-11 10:51:20 -08:00