[okl4-developer] S3C2440A and okl4
Geoffrey Lee
glee at ok-labs.com
Mon Aug 18 22:41:41 EST 2008
On Mon, Aug 18, 2008 at 02:33:49PM +0000, Rémy Gottschalk wrote:
>
> The faulty instruction seems to be a clzeq within arm_comon_return :
Hi Remy
I don't think the clz instruction is supported on the arm920t,
which might be the cause of the problem.
>
> f002c100 <arm_common_return>:
> f002c100: e3a0020f mov r0, #-268435456 ; 0xf0000000
> f002c104: e5900000 ldr r0, [r0]
> f002c108: e3a0c20f mov ip, #-268435456 ; 0xf0000000
> f002c10c: e59cc014 ldr ip, [ip, #20]
> f002c110: ee03cf10 mcr 15, 0, ip, cr3, cr0, {0}
> f002c114: e3a0020f mov r0, #-268435456 ; 0xf0000000
> f002c118: e5900000 ldr r0, [r0]
> f002c11c: e20d1ffe and r1, sp, #1016 ; 0x3f8
> f002c120: e3510ffe cmp r1, #1016 ; 0x3f8
> f002c124: 0280d058 addeq sp, r0, #88 ; 0x58
> f002c128: 059010b8 ldreq r1, [r0, #184]
>
> f002c12c: 016f1f11 clzeq r1, r1
>
> f002c130: 03510000 cmpeq r1, #0 ; 0x0
> f002c134: e59de044 ldr lr, [sp, #68]
> f002c138: e9dd7fff ldmib sp, {r0, r1, r2, r3, r4, r5, r6,
> r7, r8, r9, sl, fp, ip, sp, lr}^
> f002c13c: e1a00000 nop (mov r0,r0)
> f002c140: e16ff00e msr SPSR_fsxc, lr
> f002c144: e59de040 ldr lr, [sp, #64]
> f002c148: e28dd048 add sp, sp, #72 ; 0x48
> f002c14c: 125ef001 subnes pc, lr, #1 ; 0x1
> f002c150: e59f0d48 ldr r0, [pc, #3400] ; f002cea0
> <scheduler_ptr+0xc>
> f002c154: e1a0f000 mov pc, r0
>
>
>> Also, when you download the image.boot image to your machine, where
>> does the
>> bootloader put it in memory?
>>
>
> The image is downloaded at 0x33000000. (My ram goes from 0x30000000 to
> 0x34000000).
OK, this looks fine.
-gl
>
>
> Regards,
>
> --
> Remy Gottschalk - rgottschalk at linagora.com
> Ingénieur informatique embarquée
> Groupe LINAGORA - http://www.linagora.com
> Tél.: +33(0)1 58 18 68 28 - Fax : +33(0)1 58 18 68 29
>
--
More information about the Developer
mailing list