hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/arc/include/asm/irqflags-arcv2.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #ifndef __ASM_IRQFLAGS_ARCV2_H
....@@ -44,7 +41,13 @@
4441 #define ARCV2_IRQ_DEF_PRIO 1
4542
4643 /* seed value for status register */
47
-#define ISA_INIT_STATUS_BITS (STATUS_IE_MASK | STATUS_AD_MASK | \
44
+#ifdef CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS
45
+#define __AD_ENB STATUS_AD_MASK
46
+#else
47
+#define __AD_ENB 0
48
+#endif
49
+
50
+#define ISA_INIT_STATUS_BITS (STATUS_IE_MASK | __AD_ENB | \
4851 (ARCV2_IRQ_DEF_PRIO << 1))
4952
5053 #ifndef __ASSEMBLY__