Re: booting linux on arm problem
- From: Wei Wang <camwwang@xxxxxxxxx>
- Date: Thu, 11 Oct 2007 15:18:09 -0000
Found the source code for causing the above problem:
1. in code start_kernel/printk/vprintk/_spin_unlock_irqrestore, there
is a "MSR CPSR_c, r4" instruction which changes the CPSR mode from SVC
(supervisor) mode to reserved mode (which is not defined in ARM).
2. sp and lr values are changed to their values in the reserved mode,
which both of them are 0.
3. the next instruction after the MSR instruction is a pop stack
instruction, which pops stack sp at address 0x0, therefore, the
0xea00009a was popped to PC.
Still not clear 1) should the processor always be in SVC mode when
starting the kernel?
.
- References:
- booting linux on arm problem
- From: Wei Wang
- Re: booting linux on arm problem
- From: Juergen Beisert
- Re: booting linux on arm problem
- From: Wei Wang
- Re: booting linux on arm problem
- From: Juergen Beisert
- Re: booting linux on arm problem
- From: Wei Wang
- booting linux on arm problem
- Prev by Date: Re: Are they obligued to give me the source code?
- Next by Date: Re: Are they obligued to give me the source code?
- Previous by thread: Re: booting linux on arm problem
- Next by thread: Re: booting linux kernel on an ARM platform
- Index(es):
Relevant Pages
|
|