2015-04-11 07:44:37 +08:00
|
|
|
/* cpu.h - automatically selects the correct arch.h file to include */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1997-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-05-29 01:56:47 +08:00
|
|
|
#ifndef __ARCHCPU_H__
|
|
|
|
#define __ARCHCPU_H__
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2015-10-09 18:20:52 +08:00
|
|
|
#if defined(CONFIG_X86)
|
2015-05-29 01:56:47 +08:00
|
|
|
#include <arch/x86/arch.h>
|
2015-06-06 10:27:08 +08:00
|
|
|
#elif defined(CONFIG_ARM)
|
2015-05-29 01:56:47 +08:00
|
|
|
#include <arch/arm/arch.h>
|
2015-06-06 10:27:49 +08:00
|
|
|
#elif defined(CONFIG_ARC)
|
2015-05-29 01:56:47 +08:00
|
|
|
#include <arch/arc/arch.h>
|
2016-04-22 05:47:09 +08:00
|
|
|
#elif defined(CONFIG_NIOS2)
|
|
|
|
#include <arch/nios2/arch.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#else
|
2015-06-06 10:33:49 +08:00
|
|
|
#error "Unknown Architecture"
|
2015-04-11 07:44:37 +08:00
|
|
|
#endif
|
|
|
|
|
2015-05-29 01:56:47 +08:00
|
|
|
#endif /* __ARCHCPU_H__ */
|