* [PATCH] arm/dt: Fix booting non-dt versatile
@ 2010-07-23 20:14 Grant Likely
2010-07-26 9:08 ` Lorenzo Pieralisi
[not found] ` <4725906257688056024@unknownmsgid>
0 siblings, 2 replies; 4+ messages in thread
From: Grant Likely @ 2010-07-23 20:14 UTC (permalink / raw)
To: jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Without this patch, versatilepb will not boot in qemu
Signed-off-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
---
Hi Jeremy,
I'm not sure if this is the best fix or not, but without it I cannot boot
versatilepb anymore in QEMU.
g.
arch/arm/kernel/head.S | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 8683b3b..049d533 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -93,7 +93,7 @@ ENTRY(stext)
* Also, we don't need to call __vet_atags.
*/
add r3, r1, #1
- bcs 1f
+ beq 1f
bl __lookup_machine_type @ r5=machinfo
movs r8, r5 @ invalid machine (r5=0)?
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH] arm/dt: Fix booting non-dt versatile
2010-07-23 20:14 [PATCH] arm/dt: Fix booting non-dt versatile Grant Likely
@ 2010-07-26 9:08 ` Lorenzo Pieralisi
[not found] ` <4725906257688056024@unknownmsgid>
1 sibling, 0 replies; 4+ messages in thread
From: Lorenzo Pieralisi @ 2010-07-26 9:08 UTC (permalink / raw)
To: 'Grant Likely', jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Hi Grant, Jeremy,
> -----Original Message-----
> From: devicetree-discuss-
> bounces+lorenzo.pieralisi=arm.com-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org [mailto:devicetree-
> discuss-bounces+lorenzo.pieralisi=arm.com-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org] On Behalf
> Of Grant Likely
> Sent: 23 July 2010 21:14
> To: jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org; devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
> Subject: [PATCH] arm/dt: Fix booting non-dt versatile
>
> Without this patch, versatilepb will not boot in qemu
>
> Signed-off-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
> ---
>
> Hi Jeremy,
>
> I'm not sure if this is the best fix or not, but without it I cannot
> boot
> versatilepb anymore in QEMU.
>
> g.
>
> arch/arm/kernel/head.S | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
> index 8683b3b..049d533 100644
> --- a/arch/arm/kernel/head.S
> +++ b/arch/arm/kernel/head.S
> @@ -93,7 +93,7 @@ ENTRY(stext)
> * Also, we don't need to call __vet_atags.
> */
> add r3, r1, #1
> - bcs 1f
> + beq 1f
>
> bl __lookup_machine_type @ r5=machinfo
> movs r8, r5 @ invalid machine (r5=0)?
>
I think the issue is the add instruction not the conditional jump here.
It needs to be an "adds" to update the flags so the carry.
With beq (or bcs) you are jumping on a condition set by the movs a few lines
before, beq does not jump because the movs before did not set the zero flag
otherwise you wouldn't be executing that code, you would have branched to
__error_p.
Please let me know if it works I have not tested so I might be wrong.
Patches for versatile express coming,
Cheers,
Lorenzo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm/dt: Fix booting non-dt versatile
[not found] ` <4725906257688056024@unknownmsgid>
@ 2010-07-27 20:47 ` Grant Likely
[not found] ` <AANLkTimv=FcKwHbXGsg4Je3MMuHHKuJAi8W+HusKszfr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2010-07-27 20:47 UTC (permalink / raw)
To: Lorenzo Pieralisi
Cc: jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
On Mon, Jul 26, 2010 at 3:08 AM, Lorenzo Pieralisi
<Lorenzo.Pieralisi-5wv7dgnIgG8@public.gmane.org> wrote:
> Hi Grant, Jeremy,
>
>> -----Original Message-----
>> From: devicetree-discuss-
>> bounces+lorenzo.pieralisi=arm.com-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org [mailto:devicetree-
>> discuss-bounces+lorenzo.pieralisi=arm.com-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org] On Behalf
>> Of Grant Likely
>> Sent: 23 July 2010 21:14
>> To: jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org; devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
>> Subject: [PATCH] arm/dt: Fix booting non-dt versatile
>>
>> Without this patch, versatilepb will not boot in qemu
>>
>> Signed-off-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
>> ---
>>
>> Hi Jeremy,
>>
>> I'm not sure if this is the best fix or not, but without it I cannot
>> boot
>> versatilepb anymore in QEMU.
>>
>> g.
>>
>> arch/arm/kernel/head.S | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
>> index 8683b3b..049d533 100644
>> --- a/arch/arm/kernel/head.S
>> +++ b/arch/arm/kernel/head.S
>> @@ -93,7 +93,7 @@ ENTRY(stext)
>> * Also, we don't need to call __vet_atags.
>> */
>> add r3, r1, #1
>> - bcs 1f
>> + beq 1f
>>
>> bl __lookup_machine_type @ r5=machinfo
>> movs r8, r5 @ invalid machine (r5=0)?
>>
>
> I think the issue is the add instruction not the conditional jump here.
> It needs to be an "adds" to update the flags so the carry.
> With beq (or bcs) you are jumping on a condition set by the movs a few lines
> before, beq does not jump because the movs before did not set the zero flag
> otherwise you wouldn't be executing that code, you would have branched to
> __error_p.
> Please let me know if it works I have not tested so I might be wrong.
adds works for me on both Versatile (qemu) and Tegra.
g.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm/dt: Fix booting non-dt versatile
[not found] ` <AANLkTimv=FcKwHbXGsg4Je3MMuHHKuJAi8W+HusKszfr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-07-28 1:58 ` Jeremy Kerr
0 siblings, 0 replies; 4+ messages in thread
From: Jeremy Kerr @ 2010-07-28 1:58 UTC (permalink / raw)
To: Grant Likely; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
Hi all,
> adds works for me on both Versatile (qemu) and Tegra.
OK, I'll update my patch. Thanks for that!
Cheers,
Jeremy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-28 1:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-23 20:14 [PATCH] arm/dt: Fix booting non-dt versatile Grant Likely
2010-07-26 9:08 ` Lorenzo Pieralisi
[not found] ` <4725906257688056024@unknownmsgid>
2010-07-27 20:47 ` Grant Likely
[not found] ` <AANLkTimv=FcKwHbXGsg4Je3MMuHHKuJAi8W+HusKszfr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-28 1:58 ` Jeremy Kerr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).