From: evgeny.voevodin@intel.com (Evgeny Voevodin) Date: Tue, 22 Mar 2016 09:50:35 +0300 Subject: [PATCH] ARCv2: Additional trace IRQs to support locking correctness validator List-ID: Message-ID: <1458629435-33018-1-git-send-email-evgeny.voevodin@intel.com> To: linux-snps-arc@lists.infradead.org Flags should be saved in the same format in which clri instruction saves them since they are passed directly to seti instruction over arch_local_save_flags/arch_local_irq_restore calls. Trace of all clri/seti assembly calls is added to support locking correctness validator properly. With this patch it is possible to use locking correctness framework which did stop itself due to incomplete support. Locking tests are also became available and work propely. Signed-off-by: Evgeny Voevodin --- arch/arc/include/asm/irqflags-arcv2.h | 31 ++++++++++++++++++++++++++++++- arch/arc/kernel/entry-arcv2.S | 14 +++++++++++++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/arch/arc/include/asm/irqflags-arcv2.h b/arch/arc/include/asm/irqflags-arcv2.h index 37c2f75..bb17044 100644 --- a/arch/arc/include/asm/irqflags-arcv2.h +++ b/arch/arc/include/asm/irqflags-arcv2.h @@ -15,8 +15,13 @@ #define STATUS_AD_BIT 19 /* Disable Align chk: core supports non-aligned */ #define STATUS_IE_BIT 31 +/* status32 Bits stored on clri instruction */ +#define CLRI_STATUS_IE_BIT 4 + #define STATUS_AD_MASK (1<