From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Wed, 27 Mar 2013 13:51:33 +0000 Subject: [PATCH v2 01/30] arm64: add explicit symbols to ESR_EL1 decoding In-Reply-To: <1364317285-20937-2-git-send-email-marc.zyngier@arm.com> References: <1364317285-20937-1-git-send-email-marc.zyngier@arm.com> <1364317285-20937-2-git-send-email-marc.zyngier@arm.com> Message-ID: <20130327135133.GD1863@MacBook-Pro.local> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Mar 26, 2013 at 05:00:56PM +0000, Marc Zyngier wrote: > --- a/arch/arm64/kernel/entry.S > +++ b/arch/arm64/kernel/entry.S > @@ -24,6 +24,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -239,18 +240,18 @@ ENDPROC(el1_error_invalid) > el1_sync: > kernel_entry 1 > mrs x1, esr_el1 // read the syndrome register > - lsr x24, x1, #26 // exception class > - cmp x24, #0x25 // data abort in EL1 > + lsr x24, x1, #ESR_EL1_EC_SHIFT // exception class > + cmp x24, #ESR_EL1_EC_DABT_EL1 // data abort in EL1 > b.eq el1_da > - cmp x24, #0x18 // configurable trap > + cmp x24, #ESR_EL1_EC_SYS64 // configurable trap > b.eq el1_undef > - cmp x24, #0x26 // stack alignment exception > + cmp x24, #ESR_EL1_EC_SP_ALIGN // stack alignment exception > b.eq el1_sp_pc > - cmp x24, #0x22 // pc alignment exception > + cmp x24, #ESR_EL1_EC_PC_ALIGN // pc alignment exception > b.eq el1_sp_pc > - cmp x24, #0x00 // unknown exception in EL1 > + cmp x24, #ESR_EL1_EC_UNKNOWN // unknown exception in EL1 > b.eq el1_undef > - cmp x24, #0x30 // debug exception in EL1 > + cmp x24, #ESR_EL1_EC_BREAKPT_EL0 // debug exception in EL1 Not a problem with your patch as you just replaced the existing values but shouldn't we have BREAKPT_EL1 here? -- Catalin