Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
arc_addr_types.h
Go to the documentation of this file.
1/*
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__
20typedef unsigned long paddr_t;
21typedef void *vaddr_t;
22#else
24#endif
25
26#endif /* _ASMLANGUAGE */
27#endif /* ZEPHYR_INCLUDE_ARCH_ARC_ADDR_TYPES_H_ */
uintptr_t paddr_t
Definition addr_types.h:13
void * vaddr_t
Definition addr_types.h:14