Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3340641imu; Mon, 28 Jan 2019 03:11:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN4j1ZPly4O9+iufQ4kmpM/cNuQwgapAxj3lfV6HgVB4exwq20dQwz4YVd/fxN7tnClrXCWF X-Received: by 2002:a63:3e05:: with SMTP id l5mr12078031pga.96.1548673898583; Mon, 28 Jan 2019 03:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548673898; cv=none; d=google.com; s=arc-20160816; b=S4L9TA1e5vRYBtxVXzYrIxl897F2cR6T9NgCX4I8dpzq5dR1oTdNi1VmcEo5D1JFtx 46DUTK/fpkLdFZekJl+jYSCq36NNWrb4jiPwzw4O0YpwMf1R0TZ0kD6xst4RBN27/+rw WF1+Mt2ziWPRUBrCkOcv2SyxPdwxkD8PVcTXoOyTNnEjI5kIDu+mbSpgocBAwYTKoB0M C90elTBROqHEtb++7b/XchITlEH2z88o9VOULWCiJ1xDvBaI1irmckK/y2jqrUAri+cB 93CNZeIHH9bj164YmgHxnzWH2EpGtefVJxBXIl8v8QeFS5WxSvlceZDSV+QlPA91h5oW GHdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=ytLGkNdkHVKiARW7imqJr2f7rPUwr//KpcsmbGrquWU=; b=mb6pAzxcH8CAPViQN2uZ1uS+jDRKPwnaLQ2Zo9p2hm82mueOCOtAUc6xDBJlL1QauI 04WfyXGZG82/HxcH+qAUfvZ8owslzOzV5ZQim3OueoxagLxFarH/7CSR5LBGnRpu/rXe nWFVzioWh9zwKDFTJMXuVCdUTuN1Cwl0Vxx6+1/u6BVTsD35HPHOu4DPUPMnke/0d3lR 2nN/0DI96xj1XR/7Dbyph/U0Di0AgkI57+DvuMFaESVU2TNU6vYHzLr9JQxwkaFRRhDr bWs34lM3cclPBl6gMGBmu7vgJ31PxT5iBkYMGf/EnKt066RMwXF3KJFmtdVln4LuePOJ 0kJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=mAcXrpZI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h129si2472007pfb.253.2019.01.28.03.11.23; Mon, 28 Jan 2019 03:11:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=mAcXrpZI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfA1LLM (ORCPT + 99 others); Mon, 28 Jan 2019 06:11:12 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:2384 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbfA1LLM (ORCPT ); Mon, 28 Jan 2019 06:11:12 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43p6Ph6Rx4z9v1q7; Mon, 28 Jan 2019 12:11:04 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=mAcXrpZI; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id vkPp0Jbr9ZME; Mon, 28 Jan 2019 12:11:04 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 43p6Ph5KBsz9v1q3; Mon, 28 Jan 2019 12:11:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1548673864; bh=ytLGkNdkHVKiARW7imqJr2f7rPUwr//KpcsmbGrquWU=; h=From:Subject:To:Cc:Date:From; b=mAcXrpZIjbZvndt8G7gBmiK/WZkXF9ZMYsH9jzzbD3AaVYyVSYX2hFy94uuBtkbwJ 77f0l28xKTb1U27ESBD1bRM8acYOqU2APHqOaSQtBx4GzgP/bdlG06HSwYFqNPcJlU Apsj3aFrCllFZie4ngNgckcBqHl33Vhl/L64dGSo= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 300A28B79D; Mon, 28 Jan 2019 12:11:11 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Q3Y0li4gsvBD; Mon, 28 Jan 2019 12:11:11 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 12FFB8B796; Mon, 28 Jan 2019 12:11:11 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 0518772DE6; Mon, 28 Jan 2019 11:11:10 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH 00/11] Refactor exception entry on 40x/6xx/8xx To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 28 Jan 2019 11:11:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This serie refactors exception entry macros for 40x, 6xx and 8xx This serie will benefit to the implementation of CONFIG_VMAP, and also to Ben's serie on MSR_EE. First patch of this serie is a part of the CONFIG_THREAD_INFO_IN_TASK serie. This avoids a conflict between the two series. Christophe Leroy (11): powerpc/32: Rename THREAD_INFO to TASK_STACK powerpc/32: Refactor EXCEPTION entry macros for head_8xx.S and head_32.S powerpc/32: Add a macro for setting MSR_RI in EXCEPTION_PROLOG_2 powerpc/32: add CLR_MSR_WE() in EXCEPTION_PROLOG in head_32.h powerpc/32: add START_EXCEPTION() in head_32.h powerpc/32: move LOAD_MSR_KERNEL() into head_32.h and use it powerpc/40x: Don't use SPRN_SPRG_SCRATCH2 in EXCEPTION_PROLOG powerpc/40x: add exception frame marker powerpc/40x: Split and rename NORMAL_EXCEPTION_PROLOG powerpc/40x: Add EXC_XFER_TEMPLATE_CRITICAL() powerpc/40x: Refactor exception entry macros by using head_32.h arch/powerpc/kernel/asm-offsets.c | 2 +- arch/powerpc/kernel/entry_32.S | 11 +--- arch/powerpc/kernel/head_32.S | 101 ++-------------------------- arch/powerpc/kernel/head_32.h | 124 +++++++++++++++++++++++++++++++++++ arch/powerpc/kernel/head_40x.S | 120 ++++++++------------------------- arch/powerpc/kernel/head_8xx.S | 103 ++--------------------------- arch/powerpc/kernel/head_booke.h | 4 +- arch/powerpc/kernel/head_fsl_booke.S | 2 +- 8 files changed, 167 insertions(+), 300 deletions(-) create mode 100644 arch/powerpc/kernel/head_32.h -- 2.13.3