Author: wmb Date: Thu Jun 30 10:33:16 2011 New Revision: 2321 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2321
Log: ARM - support direct loading of Linux ELF images that are not wrapped in zImage decompression code.
Modified: cpu/arm/linux.fth
Modified: cpu/arm/linux.fth ============================================================================== --- cpu/arm/linux.fth Thu Jun 30 10:24:40 2011 (r2320) +++ cpu/arm/linux.fth Thu Jun 30 10:33:16 2011 (r2321) @@ -185,6 +185,18 @@
: mcr ( -- ) cr exit? throw ;
+\ Hack to force the vaddr to a paddr, because the Linux kernel expects to be +\ started at physical addresses. +: (linux-elf-map-in) ( va size -- ) + drop ( va ) + h# c000.0000 u> if ( ) + p32_vaddr h# c000.0000 - dup elf32-pheader >p32_vaddr l! ( pa ) + to linux-base + true to linux-loaded? + then +; +' (linux-elf-map-in) to elf-map-in + \ LICENSE_BEGIN \ Copyright (c) 2010 FirmWorks \
openfirmware@openfirmware.info