/* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __ASM_IRQFLAGS_ARCV2_H #define __ASM_IRQFLAGS_ARCV2_H #include <asm/arcregs.h> /* status32 Bits */ #define STATUS_AD_BIT 19 /* Disable Align chk: core supports non-aligned */ #define STATUS_IE_BIT 31 #define STATUS_AD_MASK (1<<STATUS_AD_BIT) #define STATUS_IE_MASK (1<<STATUS_IE_BIT) /* status32 Bits as encoded/expected by CLRI/SETI */ #define CLRI_STATUS_IE_BIT 4 #define CLRI_STATUS_E_MASK 0xF #define CLRI_STATUS_IE_MASK (1 << CLRI_STATUS_IE_BIT) #define AUX_USER_SP 0x00D #define AUX_IRQ_CTRL 0x00E #define AUX_IRQ_ACT 0x043 /* Active Intr across all levels */ #define AUX_IRQ_LVL_PEND 0x200 /* Pending Intr across all levels */ #define AUX_IRQ_HINT 0x201 /* For generating Soft Interrupts */ #define AUX_IRQ_PRIORITY 0x206 #define ICAUSE 0x40a #define AUX_IRQ_SELECT 0x40b #define AUX_IRQ_ENABLE 0x40c /* Was Intr taken in User Mode */ #define AUX_IRQ_ACT_BIT_U 31 /* * Hardware supports 16 priorities (0 highest, 15 lowest) * Linux by default runs at 1, priority 0 reserved for NMI style interrupts */ #define ARCV2_IRQ_DEF_PRIO 1 /* seed value for status register */ #define ISA_INIT_STATUS_BITS (STATUS_IE_MASK | STATUS_AD_MASK | \ (ARCV2_IRQ_DEF_PRIO << 1)) /* SLEEP needs default irq priority (<=) which can interrupt the doze */ #define ISA_SLEEP_ARG (0x10 | ARCV2_IRQ_DEF_PRIO) #ifndef __ASSEMBLY__ /* * Save IRQ state and disable IRQs */
static inline long arch_local_irq_save(void) { unsigned long flags; __asm__ __volatile__(" clri %0 \n" : "=r" (flags) : : "memory"); return flags; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 37 | 100.00% | 2 | 100.00% |
Total | 37 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 12 | 100.00% | 1 | 100.00% |
Total | 12 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Evgeny Voevodin | 29 | 55.77% | 1 | 33.33% |
Vineet Gupta | 23 | 44.23% | 2 | 66.67% |
Total | 52 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 18 | 94.74% | 1 | 50.00% |
Evgeny Voevodin | 1 | 5.26% | 1 | 50.00% |
Total | 19 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 290 | 79.23% | 8 | 88.89% |
Evgeny Voevodin | 76 | 20.77% | 1 | 11.11% |
Total | 366 | 100.00% | 9 | 100.00% |