[Skyeye-developer] ARM9EJ-S core CPU ID

Michael.Kang blackfin.kang at gmail.com
Wed Jan 30 22:42:43 CST 2008


I tried on atm920T . It seems the result is right. Debug output is as
the following:
###################################################################################
ksh at server:/opt/testsuite/linux/build-2.6.22-smdk2410>
/opt/testsuite/gdb/build-arm/gdb/gdb vmlinux
GNU gdb 6.7
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux"...
tar     re      (gdb) target remote :12345
Remote debugging using :12345
0xc0008000 in stext ()
(gdb) disassemble 0xc0008000 0xc000801C
Dump of assembler code from 0xc0008000 to 0xc000801c:
0xc0008000 <stext+0>:   msr     CPSR_c, #211    ; 0xd3
0xc0008004 <stext+4>:   mrc     15, 0, r9, cr0, cr0, {0}
0xc0008008 <stext+8>:   bl      0xc00082dc <__lookup_processor_type>
0xc000800c <stext+12>:  movs    r10, r5
0xc0008010 <stext+16>:  beq     0xc0008188 <__error_p>
0xc0008014 <stext+20>:  bl      0xc000833c <__lookup_machine_type>
0xc0008018 <stext+24>:  movs    r8, r5
End of assembler dump.
(gdb) si
Can't send signals to this remote system.  SIGHUP not sent.

Program received signal SIGHUP, Hangup.
0xc0008004 in stext ()
(gdb) si
Can't send signals to this remote system.  SIGHUP not sent.

Program received signal SIGHUP, Hangup.
0xc0008008 in stext ()
(gdb) info registers r9
r9             0x41009200       1090556416
(gdb)
##############################################################

Thanks
MK

On Jan 30, 2008 2:24 PM, sergey bryukov <sb.subscribe at gmail.com> wrote:
> Hello!
> I've tried to read ARM9EJ-S core CPU configuration registers and found any
> mismatch:
>
> Reading ID Code Register c0:
>   MRC p15,0,r0,c1,c0,0  - the result r0=0x50078
>
>   Refer to the ARM specification the CPU ID should be 0x41069260 and as it
> defined in the arm_arch_interface.c
>
> cpu_config_t arm_cpus[] = {
>
>     {"armv5", "arm926ejs", 0x41069260, 0xff0ffff0, INSTCACHE},
>
> };
>
> But I have
> r0 = 0x50078 under Insight debug session.
>
> It's look like mistake. Or am I wrong?
>
>
>
>
>
> _______________________________________________
> CLinux.org Websites:
> http://seohelper.cn/
> http://www.implight.net/
> http://gro.clinux.org/
> Skyeye-developer mailing list
> Skyeye-developer at lists.gro.clinux.org
> http://lists.gro.clinux.org/cgi-bin/mailman/listinfo/skyeye-developer
>
>



-- 
www.skyeye.org



More information about the Skyeye-developer mailing list