[PATCH 00/10] arm64: Use BRK instruction for generic BUG traps
Dave Martin
Dave.Martin at arm.com
Tue Jun 16 09:51:29 PDT 2015
On Tue, Jun 16, 2015 at 03:51:05PM +0100, Will Deacon wrote:
> Hi Dave,
>
> On Thu, Jun 11, 2015 at 04:29:14PM +0100, Dave P Martin wrote:
> > Currently, the minimal default BUG() implementation from asm-generic is
> > used for arm64.
> >
> > This series uses the BRK software breakpoint instruction to generate a
> > trap instead, similarly to most other arches, with the generic BUG code
> > generating the dmesg boilerplate. This eliminates a fair amount of
> > inlined code at BUG() and WARN() sites.
>
> I think patches 3 and 8 are a bit OTT and don't really bring us much.
>
> However, for the rest of the series (modulo my minor comments):
>
> Reviewed-by: Will Deacon <will.deacon at arm.com>
Patch 3 is needed to silence compiler warnings that happen as a side-
effect of the redefinition of DBG_ESR_VAL_BRK in patch 4.
A point hack in DBG_ESR_VAL_BRK could have fixed this, but the existing
ESR definitions are the real cause -- simply stripping all the type
information didn't appear safe due to the use of shifts and masking.
Unfortunately, attempting to fix this properly touched more code than I
would have liked...
Patch 8 was requested by Mark Rutland, who preferred a separate header
for those definitions rather than allowing them to sprawl in place.
It seemed a fair point, but I'm happy either way.
I can still drop the affected patches if you want -- let me know.
Cheers
---Dave
More information about the linux-arm-kernel
mailing list