Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44530c69 authored by Paul Mundt's avatar Paul Mundt Committed by Paul Mundt
Browse files

sh: Always define TRAPA_BUG_OPCODE.



Previously this was only set when CONFIG_BUG=y. While we rely
on that for handle_BUG() dispatch, we still want to hand the
opcode off to the die chain notifier for determining the trap
value.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 1039b9a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
#ifndef __ASM_SH_BUG_H
#ifndef __ASM_SH_BUG_H
#define __ASM_SH_BUG_H
#define __ASM_SH_BUG_H


#define TRAPA_BUG_OPCODE	0xc33e	/* trapa #0x3e */

#ifdef CONFIG_BUG
#ifdef CONFIG_BUG
#define HAVE_ARCH_BUG
#define HAVE_ARCH_BUG
#define HAVE_ARCH_WARN_ON
#define HAVE_ARCH_WARN_ON


#define TRAPA_BUG_OPCODE	0xc33e	/* trapa #0x3e */

/**
/**
 * _EMIT_BUG_ENTRY
 * _EMIT_BUG_ENTRY
 * %1 - __FILE__
 * %1 - __FILE__