From patchwork Thu May 13 14:19:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 99323 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4DEICOk027516 for ; Thu, 13 May 2010 14:18:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756913Ab0EMOSM (ORCPT ); Thu, 13 May 2010 10:18:12 -0400 Received: from mail-pz0-f204.google.com ([209.85.222.204]:50083 "EHLO mail-pz0-f204.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756170Ab0EMOSL (ORCPT ); Thu, 13 May 2010 10:18:11 -0400 Received: by pzk42 with SMTP id 42so726204pzk.4 for ; Thu, 13 May 2010 07:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=Eu8zF3o6hMsEXYBh7CfFMIFKTs4uDk7AHkmWhxe/ozI=; b=mcwgeJ2Cs4LoRJqgafMLi/2ROfurYrgiPK3ginc31ziOpBLgJEdn5em3oKw5mBz78G GLbjx1OQo4Mmew4oqICoT34d8H9br0ghqIPLHl4JfCuqQ+huglUl0fYVDNU8bp+6bNqS ypy3PalpWO7q6+rySVeRkuy3mJCFhiAr2YqYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=kzECErda+JAc6OnJcIbLfIxs98sPY6dM5339lJOsWU19JRuMWVp15MbS/IBs6oOBwE HbMEApL5w1qlKJEOjeaJJqpYX5gZTcDYyJVjnx/Ph1UQViRbCIIxCwXYGKe5HCqoHUME 6kYiDLiMxx1iLAGl8QojSTS1EqYzl1iq0Jf0c= Received: by 10.114.3.2 with SMTP id 2mr7209864wac.192.1273760290200; Thu, 13 May 2010 07:18:10 -0700 (PDT) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id v13sm11087083wav.14.2010.05.13.07.18.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 May 2010 07:18:09 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 13 May 2010 23:19:22 +0900 Message-Id: <20100513141922.20425.48182.sendpatchset@t400s> Subject: [PATCH] sh: allow romImage data between head.S and the zero page Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 13 May 2010 14:18:13 +0000 (UTC) --- 0001/arch/sh/boot/romimage/head.S +++ work/arch/sh/boot/romimage/head.S 2010-05-07 19:49:01.000000000 +0900 @@ -13,7 +13,9 @@ romstart: #include /* copy the empty_zero_page contents to where vmlinux expects it */ - mova empty_zero_page_src, r0 + mova extra_data_pos, r0 + mov.l extra_data_size, r1 + add r1, r0 mov.l empty_zero_page_dst, r1 mov #(PAGE_SHIFT - 4), r4 mov #1, r3 @@ -37,7 +39,9 @@ romstart: mov #PAGE_SHIFT, r4 mov #1, r1 shld r4, r1 - mova empty_zero_page_src, r0 + mova extra_data_pos, r0 + add r1, r0 + mov.l extra_data_size, r1 add r1, r0 jmp @r0 nop @@ -45,4 +49,6 @@ romstart: .align 2 empty_zero_page_dst: .long _text -empty_zero_page_src: +extra_data_pos: +extra_data_size: + .long zero_page_pos - extra_data_pos --- 0001/arch/sh/boot/romimage/vmlinux.scr +++ work/arch/sh/boot/romimage/vmlinux.scr 2010-05-07 19:46:57.000000000 +0900 @@ -1,6 +1,7 @@ SECTIONS { .text : { + zero_page_pos = .; *(.data) } }