.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #ifndef __ASM_IRQFLAGS_ARCV2_H |
---|
.. | .. |
---|
44 | 41 | #define ARCV2_IRQ_DEF_PRIO 1 |
---|
45 | 42 | |
---|
46 | 43 | /* 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 | \ |
---|
48 | 51 | (ARCV2_IRQ_DEF_PRIO << 1)) |
---|
49 | 52 | |
---|
50 | 53 | #ifndef __ASSEMBLY__ |
---|