From patchwork Tue May 18 14:42:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 100498 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 o4IEfJS6009491 for ; Tue, 18 May 2010 14:41:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754890Ab0EROl1 (ORCPT ); Tue, 18 May 2010 10:41:27 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:45493 "EHLO mail-ew0-f216.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754344Ab0EROl1 (ORCPT ); Tue, 18 May 2010 10:41:27 -0400 Received: by mail-ew0-f216.google.com with SMTP id 8so2175381ewy.28 for ; Tue, 18 May 2010 07:41:26 -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 :in-reply-to:references:subject; bh=Y1TUuI/t/HmZMvLO/T4/2yfWypzvRTPhQXUpsD92vPE=; b=ArWP5u9SEhbhGEPqOeQciOqN/UXHm8fJpDxcBAqkDDC/UUgxwwvrQ6cGc/lseXpxwo HAP+Dxfr9koMc6LCuBKp4tn6a+jQcH6J+zL0gEQSKK8SEr7L4ZXvEsbiwVS/CuRVjnmk SgLnF14vxIN9YtkDygBrrS0S8l/oG4cWCCN0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=GtdkcNRA4Uo6ZdbyN9LM7yiD7vCpQ5d7FGfb0349QtCcNjZA+bPJOEPQnYdApvTycp RBSRKTKHu0k25NngocDJr17uAGZp/5Z4iIfsbAoScIIBOtBxSDY52R7febkjzN9oppOZ JNDwT8xwZDsdYssvOxULM3zFQ4EG+DVxOo/4c= Received: by 10.213.48.2 with SMTP id p2mr2840705ebf.54.1274193685966; Tue, 18 May 2010 07:41:25 -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 13sm3084658ewy.13.2010.05.18.07.41.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 May 2010 07:41:25 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org, akpm@linux-foundation.org Date: Tue, 18 May 2010 23:42:40 +0900 Message-Id: <20100518144240.29239.58437.sendpatchset@t400s> In-Reply-To: <20100518144229.29239.19891.sendpatchset@t400s> References: <20100518144229.29239.19891.sendpatchset@t400s> Subject: [PATCH 01/04] 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]); Tue, 18 May 2010 14:41:28 +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) } }