Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2965395pxb; Mon, 19 Apr 2021 19:37:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKaPw1qCOVHiBkhovHKVutzXHy0tPDG+/eoubwp8ZibfvXSFKKWS19cJzcnSeLtFuUfmuu X-Received: by 2002:a17:90a:488a:: with SMTP id b10mr2368293pjh.2.1618886225396; Mon, 19 Apr 2021 19:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618886225; cv=none; d=google.com; s=arc-20160816; b=SMOqniTImouZVamlzGC1ietuApgbO+nH0pIE7lXAhn+Y5TW3+xzTfq2a6UhxV7X1hg KHcrp6mrYm5icJtb1SQ93WkTtGjvSfBpgid0TpaXUz0RmRxORKvajulp0kDfHhAG7Fr5 xN6Xd2rRp70p+VDz0I4kuUZlJkP58ut/Gtw7P/mG32iD3xSqJrAok5do2XH8WbBSgMQ3 RVzBSq2/xuOY6AJN9KmNPB8qbUIIKvA1w+LFGbqrOMuKFiAEUaKNk5ZOon2nvLmrv3I4 Qa2lbNgxcJyyqBorr9T4QGg/1XMdXy1C8AriJsIMSVrnf/y6Nt5YAMf4NVaZ3C+ldd08 AlMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=oQD9yitLmdBKSzetJdXBaqRYGMIda2O8rBTT+Bg5aJo=; b=RqbBQaBHWVjKOlTtiHjskk3/4/BCRbkz0ssfps0uid+MjEPz4yifmWk26ERRCOcrg7 D6Vqve5E1FGSnHNeUCDwrX4gE7PzdXIe6hnwGD1tJinLYVDKjzko3KKCnKlCnXWzxZDG wn9q6WCALsAW1B3JkzYCa0UhaGqVcpldRX9J74BUAh8jDtfhJdfQuyV2BgHrW0kPrOa5 n6ewaFYG2Zq0KyafRuvoDZhi+oR+q1q2Azex/k2ozpsgAP676wPZlPEySuPR6WXHJLZD lfKbeUsZN5dId+Skmn+h03BGr8+mzStOV0wntXrKQBzekzKN58C9sHV/hy9IwvSJJQIh pztg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JIZquBA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si22166155pfh.72.2021.04.19.19.36.52; Mon, 19 Apr 2021 19:37:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JIZquBA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbhDTCgl (ORCPT + 99 others); Mon, 19 Apr 2021 22:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhDTCgl (ORCPT ); Mon, 19 Apr 2021 22:36:41 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18554C06174A for ; Mon, 19 Apr 2021 19:36:10 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id p8so15602679iol.11 for ; Mon, 19 Apr 2021 19:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oQD9yitLmdBKSzetJdXBaqRYGMIda2O8rBTT+Bg5aJo=; b=JIZquBA3UWr6slVXG8UdQTuLK+Vu4tsVfvoQiI20BS0aMxuQIxDTIl5zBl9+Lsllbn +HwU7ss36jWi2fTPkhEXvhl8fbHBOPGVvzm/3VjCro0L1K75L+qARASWYmwP4EFKe+E9 0gwOOMA1na34aJyt2pcWqy8ANawz0r7T5NWXa1n89I0YKhVr6hPoO9hvZwyEvVFSsETO dyokVDPB2lXUhWuutu8X4sIBgnlzPPaekrxSN601V03tTGu6LKNhhTepjNs1wRQH1J5R RxoeFIymRyfYpifBGuaNt9vPGGktnZVsfAVrgZjufFr9wuBYnrAA0jWd+PocuiG6Ji4b r9JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oQD9yitLmdBKSzetJdXBaqRYGMIda2O8rBTT+Bg5aJo=; b=ucjpN1URfe0lWtwlZisbZR+W//rYcxxsHG5E6Jid/aetP3hSqUg7GBH2bwaRnj4I3L lFSeOuE2E6xbnqjdiJN9CXFmxbDXOlSiX681tzoZ+vzqhBS3PuN6isyS2Ou5a7RYxFKr Ts6A+phGkxnPDGG0epRKe/lh8c78qgqLQx16iSuAXeTI3tMh5RX4IkbxEtg5nSJ8EUeB lgfKTlIkc5m3sS3XDUDWH6txI4xW/pPn41wWQMuQg2DKXYTqJ2DwV2H4HskcDSRFgoiG npAs1/LoeF3mj87HsRNZuHr+ga3tYOjN3AgKEfrLXQF7WYyoBwfwSa4siS72pktK8p7h d5iQ== X-Gm-Message-State: AOAM530PIbXkHECdM2YUOp1Yccjm8y2Sc5/SJaEZQFidR6Ap0ZwQ5Wlb muUTxymeFb0nBW6MCpP+irqW4jUnOqz5mHiA4JK5n5jBFt0+bQ== X-Received: by 2002:a5e:8e0d:: with SMTP id a13mr2275186ion.23.1618886169062; Mon, 19 Apr 2021 19:36:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Xiongwei Song Date: Tue, 20 Apr 2021 10:35:42 +0800 Message-ID: Subject: Re: [PATCH 1/3] powerpc/8xx: Enhance readability of trap types To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Linux Kernel Mailing List , PowerPC Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 19, 2021 at 11:48 PM Christophe Leroy wrote: > > This patch makes use of trap types in head_8xx.S > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/interrupt.h | 29 ++++++++++++---- > arch/powerpc/kernel/head_8xx.S | 49 ++++++++++++++-------------- > 2 files changed, 47 insertions(+), 31 deletions(-) > > diff --git a/arch/powerpc/include/asm/interrupt.h b/arch/powerpc/include/asm/interrupt.h > index ed2c4042c3d1..cf2c5c3ae716 100644 > --- a/arch/powerpc/include/asm/interrupt.h > +++ b/arch/powerpc/include/asm/interrupt.h > @@ -2,13 +2,6 @@ > #ifndef _ASM_POWERPC_INTERRUPT_H > #define _ASM_POWERPC_INTERRUPT_H > > -#include > -#include > -#include > -#include > -#include > -#include > - > /* BookE/4xx */ > #define INTERRUPT_CRITICAL_INPUT 0x100 > > @@ -39,9 +32,11 @@ > /* BookE/BookS/4xx/8xx */ > #define INTERRUPT_DATA_STORAGE 0x300 > #define INTERRUPT_INST_STORAGE 0x400 > +#define INTERRUPT_EXTERNAL 0x500 > #define INTERRUPT_ALIGNMENT 0x600 > #define INTERRUPT_PROGRAM 0x700 > #define INTERRUPT_SYSCALL 0xc00 > +#define INTERRUPT_TRACE 0xd00 The INTERRUPT_TRACE macro is defined in BookS section. In BookE, 0xd00 stands for debug interrupt, so I defined it as INTERRUPT_DEBUG. I understand they are similar things, but the terminologies are different in reference manuals. Regards, Xiongwei