Line data Source code
1 0 : /*
2 : * Copyright (c) 2021 Synopsys.
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_
8 : #define ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_
9 : #ifndef _ASMLANGUAGE
10 :
11 : /*
12 : * MWDT provides paddr_t type and it conflicts with Zephyr definition:
13 : * - Zephyr defines paddr_t as a uintptr_t
14 : * - MWDT defines paddr_t as a unsigned long
15 : * This causes extra warnings. However we can safely define
16 : * paddr_t as a unsigned long for the case when MWDT toolchain is used as
17 : * they are both unsigned, have same size and aligning.
18 : */
19 : #ifdef __CCAC__
20 : typedef unsigned long paddr_t;
21 : typedef void *vaddr_t;
22 : #else
23 : #include <zephyr/arch/common/addr_types.h>
24 : #endif
25 :
26 : #endif /* _ASMLANGUAGE */
27 : #endif /* ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_ */
|