[PATCHv2 1/7] arm64: Add ASM_BUG()
From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2017-08-08 15:58:53
From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2017-08-08 15:58:53
On Tue, Aug 08, 2017 at 04:31:12PM +0100, Mark Rutland wrote:
On Wed, Jul 26, 2017 at 07:18:24PM +0100, Mark Rutland wrote:quoted
+#define __BUG_ENTRY(flags) \ + .pushsection __bug_table,"a"; \ + .align 2; \ + 0: .long 1f - 0b; \ +_BUGVERBOSE_LOCATION(__FILE__, __LINE__) \ + .short flags; \ + .popsection; \ + 1: +#else +#define __BUG_ENTRY(flags) +#endif + +#define ASM_BUG_FLAGS(flags) \ + __BUG_ENTRY(0) \ + brk BUG_BRK_IMMI accidentally dropped the flags here, which turns all WARN*s into BUGs. I've fixed this up to pass the flags to __BUG_ENTRY(). I've pushed out updated arm64/exception-stack and arm64/vmap-stack branches.
I'll pull arm64/exception-stack into for-next/core (I haven't got to the vmap-stack series yet). Thanks. -- Catalin