[Crash-utility] Problem with kvbase for ARM

Dave Anderson anderson at redhat.com
Tue Aug 27 13:25:46 UTC 2013



----- Original Message -----
> 
> 
> Hi Dave
> 
> 
> 
> I have problems with the line (in arm.c)
> 
> machdep->kvbase = symbol_value("_stext") & 0xffff0000UL;
> 
> In the latest kernels this does not give the correct value. If I change it to
> the x86 implementation:
> 
> machdep->kvbase = symbol_value("_stext") & ~KVBASE_MASK;
> 
> where KVBASE_MASK is defined in defs.h
> 
> #define KVBASE_MASK (0x1ffffff)
> 
> Then things work as they should, both on the newer and the older kernels.
> Without this patch crash complains that vmcore and vmlinux does not match
> and stops.

OK, that can be changed.  Where are the new symbols located?
All the older ARM kernels I have start like this:

 crash> sym -l
 c0004000 (A) swapper_pg_dir
 c0008000 (t) .init
 c0008000 (T) __init_begin
 c0008000 (T) _sinittext
 c0008000 (T) _stext
 c0008000 (T) stext
 c000804c (t) __create_page_tables
 c0008104 (t) __enable_mmu_loc
 c0008110 (t) __enable_mmu
 c0008140 (t) __turn_mmu_on
 c0008158 (t) __enable_mmu_end
 c0008158 (t) __vet_atags
 ...

Dave
 




More information about the Crash-utility mailing list