Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsjUO-0007L4-P3 for qemu-devel@nongnu.org; Wed, 22 Oct 2008 15:35:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsjUN-0007KX-W2 for qemu-devel@nongnu.org; Wed, 22 Oct 2008 15:35:28 -0400 Received: from [199.232.76.173] (port=41269 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsjUN-0007KI-PQ for qemu-devel@nongnu.org; Wed, 22 Oct 2008 15:35:27 -0400 Received: from savannah.gnu.org ([199.232.41.3]:35182 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsjUN-0005XN-9e for qemu-devel@nongnu.org; Wed, 22 Oct 2008 15:35:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KsjUL-0002P5-Dz for qemu-devel@nongnu.org; Wed, 22 Oct 2008 19:35:25 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KsjUJ-0002Ox-Bv for qemu-devel@nongnu.org; Wed, 22 Oct 2008 19:35:25 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Wed, 22 Oct 2008 19:35:23 +0000 Subject: [Qemu-devel] [5515] ETRAX-FS: Correct booting of elf linux images from ram. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5515 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5515 Author: edgar_igl Date: 2008-10-22 19:35:08 +0000 (Wed, 22 Oct 2008) Log Message: ----------- ETRAX-FS: Correct booting of elf linux images from ram. Modified Paths: -------------- trunk/hw/etraxfs.c Modified: trunk/hw/etraxfs.c =================================================================== --- trunk/hw/etraxfs.c 2008-10-22 19:22:30 UTC (rev 5514) +++ trunk/hw/etraxfs.c 2008-10-22 19:35:08 UTC (rev 5515) @@ -122,17 +122,16 @@ uint64_t entry; /* Boots a kernel elf binary, os/linux-2.6/vmlinux from the axis devboard SDK. */ - kernel_size = load_elf(kernel_filename, 0, + kernel_size = load_elf(kernel_filename, -0x80000000LL, &entry, NULL, NULL); bootstrap_pc = entry; if (kernel_size < 0) { /* Takes a kimage from the axis devboard SDK. */ kernel_size = load_image(kernel_filename, phys_ram_base + 0x4000); bootstrap_pc = 0x40004000; - /* magic for boot. */ - env->regs[8] = 0x56902387; env->regs[9] = 0x40004000 + kernel_size; } + env->regs[8] = 0x56902387; /* RAM init magic. */ } env->pc = bootstrap_pc;