Message ID | 1464576750-25160-8-git-send-email-shijie.huang@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5661460755 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 May 2016 02:55:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B2501FFC7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 May 2016 02:55:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FC2128066; Mon, 30 May 2016 02:55:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DF4F31FFC7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 May 2016 02:55:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7DLg-0007DK-Bi; Mon, 30 May 2016 02:54:36 +0000 Received: from eu-smtp-delivery-143.mimecast.com ([146.101.78.143]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7DL7-0006m4-Ca for linux-arm-kernel@lists.infradead.org; Mon, 30 May 2016 02:54:02 +0000 Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lrp0077.outbound.protection.outlook.com [213.199.154.77]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-65-mnOGzlDpRQ26_s5sas5aBg-1; Mon, 30 May 2016 03:53:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jSo79ssWN536mGqnn5DUz61azs1xu8zrq/glvR5DZMs=; b=h9fswSszyxqAH4BbdabIz/Ait/y898bQzLBbGi5F83HDQ3ws/tFfAa6gLQ27bwUwjr9LOOk6rQw8Oz93a2yXh4f6pXjL8DJQ+adgdqa/WkUONzL3UJvHshK+IQhWfBKz84rZJrRsa1BECwzstxCa5zGn0Gbn/ZJzGY3QY9c9Hq8= Received: from AM2PR08CA0008.eurprd08.prod.outlook.com (10.162.32.18) by VI1PR0801MB1549.eurprd08.prod.outlook.com (10.167.210.151) with Microsoft SMTP Server (TLS) id 15.1.506.9; Mon, 30 May 2016 02:53:40 +0000 Received: from AM1FFO11FD005.protection.gbl (2a01:111:f400:7e00::136) by AM2PR08CA0008.outlook.office365.com (2a01:111:e400:843e::18) with Microsoft SMTP Server (TLS) id 15.1.501.7 via Frontend Transport; Mon, 30 May 2016 02:53:40 +0000 Received: from nebula.arm.com (217.140.96.140) by AM1FFO11FD005.mail.protection.outlook.com (10.174.64.87) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Mon, 30 May 2016 02:53:39 +0000 Received: from sha-win-210.asiapac.arm.com (10.1.2.79) by mail.arm.com (10.1.106.66) with Microsoft SMTP Server id 14.3.279.2; Mon, 30 May 2016 03:53:16 +0100 From: Huang Shijie <shijie.huang@arm.com> To: <catalin.marinas@arm.com> Subject: [PATCH 7/9] arm64: entry: save the x0 back into the stack before disabling the interrupt Date: Mon, 30 May 2016 10:52:28 +0800 Message-ID: <1464576750-25160-8-git-send-email-shijie.huang@arm.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464576750-25160-1-git-send-email-shijie.huang@arm.com> References: <1464576750-25160-1-git-send-email-shijie.huang@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:217.140.96.140; IPV:CAL; SCL:-1; CTRY:GB; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(50226002)(5008740100001)(104016004)(4326007)(6806005)(5003600100002)(92566002)(33646002)(36756003)(5003940100001)(8936002)(8676002)(48376002)(2351001)(50986999)(87936001)(106466001)(86362001)(1220700001)(229853001)(586003)(2950100001)(19580405001)(19580395003)(76176999)(77096005)(110136002)(11100500001)(189998001)(2906002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0801MB1549; H:nebula.arm.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD005; 1:vc+ZaHLBi0RLI9ViKn0Ex763eD94yWnaQtXLZauDQLqlPB79agVxTUFSKsiumHwyeu+rfd3zRCkMKcanTl6/MiEtIZajkuoaA3i1N4qWNH6eeakk2MPN4iZIrO3fFu/OzTdmyDbuf/eLnjOFhZxLGaR5ydhZd6BpzfksrmWE4RZLX1ntIEa6+ycV2lHkFTjhBDBwXouvFcChVM7q8gjJGAruNCNDvYzaMWvbciouf6ytgiAMeeAqXeHdOPJ9qVxAxOGcYeanJhWPBhfgfAGFJMzmsItGvpp+PQNElXdE8ik2vMezDoX3cbIX3FTNbrjT6MxK2TSsmyjymXuYfznAHrzJ53EiHOwL6ZHCe0doq44PuqHF5JJQTky9aj3qYJCDq9TeY8I8dMSuWHqjGi7RApSirTqxEE5Y6wGbTiW3Dy7KQOsrXeJ9c0mzcDq/BYxUTLcoblwrYihxDyX/X8DeFid/eemfvGR/hzQDnjgzXyKaibH3/XlDaSxfWCNlePgZc6wZO3biDTkA/vtkLhCmidsFHW5KV3pl3CqlO7NBV2Q8E40QqsyM0EYwoaD80fLA X-MS-Office365-Filtering-Correlation-Id: ff7f5c77-0ff5-471d-85c2-08d388359ac2 X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1549; 2:lI/e4qTpPZqhDS02YUFc8njAbgpu0SkhHfwIVf1TdTBhR0+RsK3gwVv+PVp9ZHLRk5hhiCDIJg1BP8hjY4eWXrhKovxgHeF2WBRoTQ+dcYyGOdn0IHNvk+ylHsIsPLpfxSAKfAAmcH4bEnX0ASAxCW4qVPphTauWwL8SoReuGYWbHD5T8aBqRihR+64VT94N; 3:HRdyihfPOLBpLO7eQ5s48LF6lO+Dsd5eVIiR1AOZ23L2fKF7mHec0/miqtT3dQUBRzmNHN1MhCCq7Ey6673XAisfrh8C0sT0b4GtORSU8qttRDIsr+isnvTuiA+ClFc2N/I3gh3+QI3OkN3uJBOQVJFDMnsQZna015QIBOsfaAf0IiF22rjpcpnU9V7GUZcjsjLqJ8MPbtzV0JZLizHpGV4zLPsGlHMvRxD2jVf6BiOO30v9MIirQPhf4S5I296oa5XIEbpj2Qvqt+1TfwKG7A== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:VI1PR0801MB1549; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1549; 25:kdfFMa/omqhnlX6NO9n8W9L4PW3V8qKuPuH8/oprRGBU7NuyPL35QEa3iPCPiXqMH4Wcczj9iHYjI2E7Ls9e91ASGGOjgj7kHGDgtFiisr+3Vr91rT+oRI3I0PNqJYWfXjG4OPFpjK9iQnIqJYMBogV8kULyTeyQ2ch6F5ha8qzF1x029UemasYtMHerGTc83tHF0d2/u/amcHCjCs4f9NWwTOfymL7eqDkuyhHcuiPcBKHogduHNJWxVD/ws22Jj+b/4iHz2fqTjSUb0SINkxUDNyEGofkBzDEC4RDX+c6J77K73Aijtyb7sUjWD7JHBsH3Y2nZ+1hir2QT5b7tU2WH0DV/OAhJhnf3Gnp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3r2YbCCmlKhfZb6jiFRP6JhynOpWRgNfOCIUvQ6TZons9ILcByMFpexIHCnOeHv9Vxgg0uG0qx704muiO8fwm3uE/8lP6HqYWlk6nmrnjBUqPflConVAmw3YKFE4e1pqwr2L7vkaseMvXk1Uxk X-Microsoft-Antispam-PRVS: <VI1PR0801MB1549C3D78876815CAB3A62E284450@VI1PR0801MB1549.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13013025)(13020025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:VI1PR0801MB1549; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1549; X-Forefront-PRVS: 09583628E0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0801MB1549; 23:wlmOeGgopGbAx9LpK23dTEf88MHALjfjL3prMbB?= =?us-ascii?Q?mlchqeNkA46aJxUNH1opIP9fOsXeNbfGGDWtIOfXJovtJlcoDe2O89MF3GRu?= =?us-ascii?Q?cRZyFtrDxjOjRdStmSjBn2bfeQEgUYHN0EjRQGMaFqNfntOUJW+lDobYwowU?= =?us-ascii?Q?8XFn2QTKzBRnNXsnmtv6ndx2XGnxYvplDHTInY30WmqGo/xaYtN4xUVHpQ4q?= =?us-ascii?Q?R7Pei55JlYm/SqBbjQS5Tq5rdNiOCwS52V9+bfIEk5mS1UChMwJTKDsESmc0?= =?us-ascii?Q?8thdSc/oChUO3vVQhDbVnnqEV81yaK8NpC7J7iRrZAxGXjFm3KyWE3uMAd7V?= =?us-ascii?Q?1J4W37ezPcJHkbs1xbOnU0uKoFkUArjFleY7t5w+s+HiTaAWpoF6Xy6fF8nB?= =?us-ascii?Q?stpaA7LpgSfUzaXflwkTDpfFPGu7ytUBB7k2/WM3YksezddVTkm6YaAPX6mD?= =?us-ascii?Q?pUFlDlT5ou1XX00GdlvnO/tthVV7GituCgoz8bgaxp2YJ12dq36ybEs7bbPN?= =?us-ascii?Q?Qam2p2roxM4re2Ro7aCULCkNPVYvWrhXESk5Flv7SJf9fT7iYis4eaNSBX7K?= =?us-ascii?Q?TaSWdYikYcTGjg7YrkDMi2+B5x0PEE+au373qlV6LZmJggZXEJik3WS/llKE?= =?us-ascii?Q?BSf8NdtHffS3C9H6d3T4yOrbws+/bFgHXr8ePgfFqtSC7v+b2FZySb0tBhgR?= =?us-ascii?Q?25Kh/0xpEjPMDsbR8sDoM1Ll54grTzb2eiR55KIGbULeMFa2opaiVqgEKHUs?= =?us-ascii?Q?j8At7r1cIui1FLMRbp9SOD0tGrTkqdijFwLKvdKZUwrDI8gm7vXCVwehaBvN?= =?us-ascii?Q?xzJFZmBstyrpQCVzzx42MBX++N9yt6gljLgX72TK8CZAY5bKRAPcMHndVwqP?= =?us-ascii?Q?tLzhcG8STqsspDVP9NrofBBeqcdsqkYHzO+XzLic9hui26fadMI9R8iP0gMe?= =?us-ascii?Q?2yI+/x8jtzuRDDDGIwR5WZ4h0XdMEkstiVOYbGA/ZuQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1549; 5:hLUDcips1hHOdWUTisuTYdnE2hFSvQklaHG7EPKxTA5WZv5/ypW5tftRkWHumqMUk4/Vrn1urvaJgxvJcCIrqKbCvnsknK/yhq7K7QUZtrNqCxlmEjR9tup9aZFKLoGptO/OEMtasTl34ms9bUMLUA==; 24:EFk8iFT/fopVO9P8/k/vbo7ln+tMZ4AsP07H0W/ZSlRi9eLezvzYRViJOOVaC9wXvfol72z0jBpz9ieeNxenk7DzyZBpaDaqZvpLmiEk1Kg=; 7:vyTBHGEJKcP4RVXsvpRu8dHmjJI9QnE9Qhl4dk9Io2EmdL9ThgZL4PXCEm2XXCwH9jp8eYvVGU63FKXep1moD0ubSzPdncr1GXHp6R4ET5Wi07UqQWA0Iv+dp97mXSAzL+YKqEiOtR4IhHkrh66snfy7tzalbwHo3T7768xFpceU5QV8pxisEtjkJWAYLRc/; 20:a7Ug5hwMBKIPaBmgs+Q/OE4YOgHEYY/3B9qhNjdTO0wbTDfe7y3Jhjdv1FA7kLuvrWFlHRlWa6krJCY9e28Br3SPjkDK+3NtTOjpK2VESt7yWktJM9CxzR8GU9bgRapao2RTx+7D1AL/Kb3OLnaCSUNrjh1Nw4s3T8RxTs2s6LY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2016 02:53:39.8115 (UTC) X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[217.140.96.140]; Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1549 X-MC-Unique: mnOGzlDpRQ26_s5sas5aBg-1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160529_195401_865329_5F481520 X-CRM114-Status: UNSURE ( 9.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: mark.rutland@arm.com, cmetcalf@mellanox.com, steve.capper@arm.com, marc.zyngier@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, Huang Shijie <shijie.huang@arm.com>, nd@arm.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S index 63bf7ad..7005789 100644 --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -672,8 +672,8 @@ ENDPROC(cpu_switch_to) * and this includes saving x0 back into the kernel stack. */ ret_fast_syscall: - disable_irq // disable interrupts str x0, [sp, #S_X0] // returned x0 + disable_irq // disable interrupts ldr x1, [tsk, #TI_FLAGS] // re-check for syscall tracing and x2, x1, #_TIF_SYSCALL_WORK cbnz x2, ret_fast_syscall_trace
We will add the hardirq flags trace code in the disable_irq, the trace code may changes the x0, so save the x0 back into the stack before disabling the interrupt, This patch makes preparation for the later patch. Signed-off-by: Huang Shijie <shijie.huang@arm.com> --- arch/arm64/kernel/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)