[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210409174506.GH26583@gate.crashing.org>
Date: Fri, 9 Apr 2021 12:45:06 -0500
From: Segher Boessenkool <segher@...nel.crashing.org>
To: Christophe Leroy <christophe.leroy@...roup.eu>
Cc: Xiongwei Song <sxwjean@...com>, mpe@...erman.id.au,
benh@...nel.crashing.org, paulus@...ba.org, oleg@...hat.com,
npiggin@...il.com, aneesh.kumar@...ux.ibm.com,
ravi.bangoria@...ux.ibm.com, mikey@...ling.org,
haren@...ux.ibm.com, akpm@...ux-foundation.org, rppt@...nel.org,
jniethe5@...il.com, atrajeev@...ux.vnet.ibm.com,
maddy@...ux.ibm.com, peterz@...radead.org, kjain@...ux.ibm.com,
kan.liang@...ux.intel.com, aik@...abs.ru, alistair@...ple.id.au,
pmladek@...e.com, john.ogness@...utronix.de,
Xiongwei Song <sxwjean@...il.com>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] powerpc/traps: Enhance readability for trap types
On Fri, Apr 09, 2021 at 06:14:19PM +0200, Christophe Leroy wrote:
> >+#define INTERRUPT_SYSTEM_RESET 0x100
>
> INT_SRESET
SRESET exists on many PowerPC, it means "soft reset". Not the same
thing at all.
I think "INT" is not a great prefix fwiw, there are many things you can
abbr to "INT".
> >+#define INTERRUPT_DATA_SEGMENT 0x380
>
> INT_DSEG
exceptions-64s.S calls this "DSLB" (I remember "DSSI" though -- but neither
is a very official name). It probably is a good idea to look at that
existing code, not make up even more new names :-)
> >+#define INTERRUPT_DOORBELL 0xa00
>
> INT_DBELL
That saves three characters and makes it very not understandable.
Segher
Powered by blists - more mailing lists