2015-04-11 07:44:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2014 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-12-04 23:09:39 +08:00
|
|
|
/**
|
|
|
|
* @file
|
2016-12-23 20:32:56 +08:00
|
|
|
* @brief ARC specific kernel interface header
|
2015-12-04 23:09:39 +08:00
|
|
|
*
|
2016-12-23 20:32:56 +08:00
|
|
|
* This header contains the ARC specific kernel interface. It is
|
|
|
|
* included by the kernel interface architecture-abstraction header
|
|
|
|
* include/arch/cpu.h)
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
#ifndef _ARC_ARCH__H_
|
|
|
|
#define _ARC_ARCH__H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-04-19 07:22:55 +08:00
|
|
|
/* APIs need to support non-byte addressable architectures */
|
2015-06-02 01:39:43 +08:00
|
|
|
|
|
|
|
#define OCTET_TO_SIZEOFUNIT(X) (X)
|
|
|
|
#define SIZEOFUNIT_TO_OCTET(X) (X)
|
|
|
|
|
2015-11-25 07:02:50 +08:00
|
|
|
#include <sw_isr_table.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#ifdef CONFIG_CPU_ARCV2
|
2015-05-29 01:56:47 +08:00
|
|
|
#include <arch/arc/v2/exc.h>
|
|
|
|
#include <arch/arc/v2/irq.h>
|
|
|
|
#include <arch/arc/v2/ffs.h>
|
|
|
|
#include <arch/arc/v2/error.h>
|
|
|
|
#include <arch/arc/v2/misc.h>
|
|
|
|
#include <arch/arc/v2/aux_regs.h>
|
|
|
|
#include <arch/arc/v2/arcv2_irq_unit.h>
|
2015-08-25 19:39:56 +08:00
|
|
|
#include <arch/arc/v2/asm_inline.h>
|
2015-10-30 04:20:28 +08:00
|
|
|
#include <arch/arc/v2/addr_types.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#endif
|
|
|
|
|
2015-05-26 22:21:42 +08:00
|
|
|
#define STACK_ALIGN 4
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _ARC_ARCH__H_ */
|