2015-04-10 16:44:37 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-18 17:01:01 -08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-10 16:44:37 -07:00
|
|
|
*/
|
|
|
|
|
2015-12-04 10:09:39 -05:00
|
|
|
/**
|
|
|
|
* @file
|
2016-12-23 07:32:56 -05:00
|
|
|
* @brief ARM specific kernel interface header
|
2015-12-04 10:09:39 -05:00
|
|
|
*
|
2016-12-23 07:32:56 -05:00
|
|
|
* This header contains the ARM specific kernel interface. It is
|
|
|
|
* included by the kernel interface architecture-abstraction header
|
|
|
|
* (include/arc/cpu.h)
|
2015-07-01 17:22:39 -04:00
|
|
|
*/
|
2015-04-10 16:44:37 -07:00
|
|
|
|
|
|
|
#ifndef _ARM_ARCH__H_
|
|
|
|
#define _ARM_ARCH__H_
|
|
|
|
|
2017-02-10 15:31:26 -06:00
|
|
|
/* Add include for DTS generated information */
|
|
|
|
#include <generated_dts_board.h>
|
|
|
|
|
2015-04-10 16:44:37 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-10-23 16:20:25 -04:00
|
|
|
/* ARM GPRs are often designated by two different names */
|
|
|
|
#define sys_define_gpr_with_alias(name1, name2) union { uint32_t name1, name2; }
|
|
|
|
|
2015-10-04 09:34:11 -04:00
|
|
|
/* APIs need to support non-byte addressable architectures */
|
2015-06-01 13:39:43 -04:00
|
|
|
|
|
|
|
#define OCTET_TO_SIZEOFUNIT(X) (X)
|
|
|
|
#define SIZEOFUNIT_TO_OCTET(X) (X)
|
|
|
|
|
2015-06-17 11:16:57 -04:00
|
|
|
#ifdef CONFIG_CPU_CORTEX_M
|
2015-08-20 16:46:11 -04:00
|
|
|
#include <arch/arm/cortex_m/exc.h>
|
|
|
|
#include <arch/arm/cortex_m/irq.h>
|
|
|
|
#include <arch/arm/cortex_m/error.h>
|
|
|
|
#include <arch/arm/cortex_m/misc.h>
|
|
|
|
#include <arch/arm/cortex_m/memory_map.h>
|
|
|
|
#include <arch/arm/cortex_m/asm_inline.h>
|
2015-09-18 15:57:27 -04:00
|
|
|
#include <arch/arm/cortex_m/addr_types.h>
|
2016-01-29 16:23:38 -05:00
|
|
|
#include <arch/arm/cortex_m/sys_io.h>
|
2016-03-08 13:13:02 -08:00
|
|
|
#include <arch/arm/cortex_m/nmi.h>
|
2015-04-10 16:44:37 -07:00
|
|
|
#endif
|
|
|
|
|
2015-05-26 10:21:42 -04:00
|
|
|
#define STACK_ALIGN 4
|
|
|
|
|
2015-04-10 16:44:37 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _ARM_ARCH__H_ */
|