From patchwork Mon Oct 7 14:44:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 20861 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1721F24697 for ; Mon, 7 Oct 2013 14:44:42 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id lf12sf12819160vcb.6 for ; Mon, 07 Oct 2013 07:44:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=fG3/lsnfNg069mO37lGpXH7giNXwK2ncUEUIJDHOasU=; b=k+oIrcwsUrcevQr6PWX0qdwEMeTwghPLP6lR0G7zBER/5bCEMeiNh+eGX+t+qcmwTu oCU5u60xOc2FR7npEsmUuqHmn0024FF5tG5hdwVHV+gxSNmsT4vAI+egpZUPF0fuZA+b bY1jSc1+CqKHLCKMe+H1QUbWfHak+k5tGpQvAoczgmXEaUH0xJ2njqg4YrkySVQ4qrT/ Zm0wgKswqdyeC1ZISVwHbumiV9Sk5Uv4nznQnEt6rj30ESQWb2ek0gJzwObbDjMM+dhT I/giB6w1hfRMOCOEETGwr+HTHcExun96Z+EVfloHaGrZU/NuCqJH09Fpvmi4MYaDlxJ2 Qmww== X-Received: by 10.236.82.115 with SMTP id n79mr27922318yhe.35.1381157081473; Mon, 07 Oct 2013 07:44:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.6 with SMTP id f6ls779036qeh.3.gmail; Mon, 07 Oct 2013 07:44:41 -0700 (PDT) X-Received: by 10.58.235.193 with SMTP id uo1mr26350145vec.6.1381157081370; Mon, 07 Oct 2013 07:44:41 -0700 (PDT) Received: from mail-vb0-f51.google.com (mail-vb0-f51.google.com [209.85.212.51]) by mx.google.com with ESMTPS id sc5si7838463vdc.139.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Oct 2013 07:44:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.51 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.51; Received: by mail-vb0-f51.google.com with SMTP id x16so3417869vbf.24 for ; Mon, 07 Oct 2013 07:44:41 -0700 (PDT) X-Gm-Message-State: ALoCoQl2XRZiz4k7OggKEafZd4/vhKkQXTB3bHUR1bugI3aQrl3EmM4yBOKF2iRxkACkTgMXBW9o X-Received: by 10.58.134.16 with SMTP id pg16mr939372veb.21.1381157081268; Mon, 07 Oct 2013 07:44:41 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp130604vcz; Mon, 7 Oct 2013 07:44:40 -0700 (PDT) X-Received: by 10.14.208.194 with SMTP id q42mr49610439eeo.31.1381157080113; Mon, 07 Oct 2013 07:44:40 -0700 (PDT) Received: from mail-ea0-f170.google.com (mail-ea0-f170.google.com [209.85.215.170]) by mx.google.com with ESMTPS id 7si23519540eeo.259.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Oct 2013 07:44:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.170 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.215.170; Received: by mail-ea0-f170.google.com with SMTP id h14so3315877eak.15 for ; Mon, 07 Oct 2013 07:44:39 -0700 (PDT) X-Received: by 10.15.45.8 with SMTP id a8mr49835435eew.1.1381157079426; Mon, 07 Oct 2013 07:44:39 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h52sm64183392eez.3.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Oct 2013 07:44:38 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, tim@xen.org, Julien Grall Subject: [PATCH] xen/arm32: Call start_xen only on the boot CPU Date: Mon, 7 Oct 2013 15:44:35 +0100 Message-Id: <1381157075-28214-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.51 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The boot CPU can have a CPU ID non-equal to zero. Xen needs to check the logical CPU ID (in r12) to know if the CPU is the boot one. Signed-off-by: Julien Grall --- xen/arch/arm/arm32/head.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S index 92b3c48..ce1d21a 100644 --- a/xen/arch/arm/arm32/head.S +++ b/xen/arch/arm/arm32/head.S @@ -403,7 +403,8 @@ launch: sub sp, #CPUINFO_sizeof /* Make room for CPU save record */ mov r0, r10 /* Marshal args: - phys_offset */ mov r1, r8 /* - DTB address */ - movs r2, r7 /* - CPU ID */ + mov r2, r7 /* - CPU ID */ + teq r12, #0 beq start_xen /* and disappear into the land of C */ b start_secondary /* (to the appropriate entry point) */