All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter A. G. Crosthwaite" <peter.crosthwaite@petalogix.com>
To: edgar.iglesias@gmail.com, qemu-devel@nongnu.org
Cc: peter.crosthwaite@petalogix.com, peter.maydell@linaro.org,
	john.williams@petalogix.com
Subject: [Qemu-devel] [PATCH v2 1/2] arm_boot: Assume Linux boot flow when -dtb given
Date: Mon, 18 Jun 2012 11:35:35 +1000	[thread overview]
Message-ID: <54bd7599198754771c6dc3f658f4cab74ede93b2.1339982763.git.peter.crosthwaite@petalogix.com> (raw)
In-Reply-To: <cover.1339982763.git.peter.crosthwaite@petalogix.com>
In-Reply-To: <cover.1339982763.git.peter.crosthwaite@petalogix.com>

If the user boots with a -dtb assume the Linux boot flow, even when handling an
elf.

Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
---
 hw/arm_boot.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/hw/arm_boot.c b/hw/arm_boot.c
index 7447f5c..f0fa23c 100644
--- a/hw/arm_boot.c
+++ b/hw/arm_boot.c
@@ -360,6 +360,11 @@ void arm_load_kernel(CPUARMState *env, struct arm_boot_info *info)
         exit(1);
     }
     info->entry = entry;
+
+    if (info->dtb_filename) {
+        is_linux = 1;
+    }
+
     if (is_linux) {
         if (info->initrd_filename) {
             initrd_size = load_image_targphys(info->initrd_filename,
-- 
1.7.3.2

  reply	other threads:[~2012-06-18  1:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18  1:35 [Qemu-devel] [PATCH v2 0/2] These two patches add some flexibilities to the arm bootloader Peter A. G. Crosthwaite
2012-06-18  1:35 ` Peter A. G. Crosthwaite [this message]
2012-06-19 13:06   ` [Qemu-devel] [PATCH v2 1/2] arm_boot: Assume Linux boot flow when -dtb given Peter Maydell
2012-06-20  1:45     ` Peter Crosthwaite
2012-06-22 13:27       ` Peter Crosthwaite
2012-06-22 13:36         ` Peter Maydell
2012-06-22 13:43           ` Peter Crosthwaite
2012-06-22 13:54           ` Peter Crosthwaite
2012-06-18  1:35 ` [Qemu-devel] [PATCH v2 2/2] arm_boot: Conditionalised DTB command line update Peter A. G. Crosthwaite
2012-06-19 13:08   ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54bd7599198754771c6dc3f658f4cab74ede93b2.1339982763.git.peter.crosthwaite@petalogix.com \
    --to=peter.crosthwaite@petalogix.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=john.williams@petalogix.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.