From patchwork Wed Aug 7 22:14:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2840612 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 38654BF535 for ; Wed, 7 Aug 2013 22:15:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A21820565 for ; Wed, 7 Aug 2013 22:15:29 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 512E020564 for ; Wed, 7 Aug 2013 22:15:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7C09-00053k-87; Wed, 07 Aug 2013 22:14:42 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Bzo-0007VP-MH; Wed, 07 Aug 2013 22:14:20 +0000 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7Bzl-0007Sz-26 for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2013 22:14:18 +0000 Received: by mail-pd0-f174.google.com with SMTP id 10so1870959pdc.5 for ; Wed, 07 Aug 2013 15:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=a6OEi8kxDcS878861B45zwNO8impdWeJe4WptXkM9pI=; b=ibt7Zq6vckNSlC9Bs5y0C1OZsCa07oO/m8FncMXUJWRzfAHaIWvPKH1b3gXLLPcnzl J69ONamerNfEOXNCHQA7z0ZunpqnMkbA/EddlRuD6E6gIAPlF3oWsZKNsWHtcd9iWXPO BRHKFIZjI+q2YG6aSqO5Nd+wXnC0tink2ORVd31ua4iogMzFES96+Djg26uhaGB1LyTp jTBaAm+ZeASqwajAH4QJ1V2zU16E/AyX7ZYbngb6pNOvsHrrLV7e4YeqZIfN4TrvhMev Qdf5ZX7KTOewFbdBQfuIqY83qK2KBb74TGeVXfvSw8b30D/v2IIfzcokatSvbLgOez2B 7stA== X-Received: by 10.68.179.36 with SMTP id dd4mr2886439pbc.64.1375913635462; Wed, 07 Aug 2013 15:13:55 -0700 (PDT) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id pu5sm12519628pac.21.2013.08.07.15.13.52 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 Aug 2013 15:13:54 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 08 Aug 2013 07:14:07 +0900 Message-Id: <20130807221407.22251.28821.sendpatchset@w520> In-Reply-To: <20130807221321.22251.22774.sendpatchset@w520> References: <20130807221321.22251.22774.sendpatchset@w520> Subject: [PATCH 05/05] ARM: shmobile: Introduce shmobile_boot_size X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130807_181417_239381_FAD3B178 X-CRM114-Status: UNSURE ( 7.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: olof@lixom.net, horms@verge.net.au, Magnus Damm , arnd@arndb.de, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Introduce shmobile_boot_size that can be used by future SMP code to determine the size of the boot code that needs to be copied to internal SRAM. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/headsmp.S | 3 +++ arch/arm/mach-shmobile/include/mach/common.h | 1 + 2 files changed, 4 insertions(+) --- 0001/arch/arm/mach-shmobile/headsmp.S +++ work/arch/arm/mach-shmobile/headsmp.S 2013-08-07 19:11:46.000000000 +0900 @@ -40,6 +40,9 @@ shmobile_boot_fn: .globl shmobile_boot_arg shmobile_boot_arg: 2: .space 4 + .globl shmobile_boot_size +shmobile_boot_size: + .long . - shmobile_boot_vector /* * Per-CPU SMP boot function/argument selection code based on MPIDR --- 0008/arch/arm/mach-shmobile/include/mach/common.h +++ work/arch/arm/mach-shmobile/include/mach/common.h 2013-08-07 19:11:46.000000000 +0900 @@ -9,6 +9,7 @@ extern void shmobile_setup_console(void) extern void shmobile_boot_vector(void); extern unsigned long shmobile_boot_fn; extern unsigned long shmobile_boot_arg; +extern unsigned long shmobile_boot_size; extern void shmobile_smp_boot(void); extern void shmobile_smp_sleep(void); extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,