-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial Cortex-A AArch64 support. #946
Open
alfedotov
wants to merge
3
commits into
ARM-software:develop
Choose a base branch
from
alfedotov:Core-AArch64
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,245 @@ | ||
/**************************************************************************//** | ||
* @file cmsis_compiler.h | ||
* @brief CMSIS compiler generic header file | ||
* @version V1.0.0 | ||
* @date 15. June 2020 | ||
******************************************************************************/ | ||
/* | ||
* Copyright (c) 2020 Arm Limited. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* 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 | ||
* | ||
* www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef __CMSIS_COMPILER_H | ||
#define __CMSIS_COMPILER_H | ||
|
||
#include <stdint.h> | ||
|
||
/* | ||
* Arm Compiler 4/5 | ||
*/ | ||
#if defined ( __CC_ARM ) | ||
#include "cmsis_armcc.h" | ||
|
||
|
||
/* | ||
* Arm Compiler 6.6 LTM (armclang) | ||
*/ | ||
#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) && (__ARMCC_VERSION < 6100100) | ||
#include "cmsis_armclang_ltm.h" | ||
|
||
/* | ||
* Arm Compiler above 6.10.1 (armclang) | ||
*/ | ||
#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6100100) | ||
#include "cmsis_armclang.h" | ||
|
||
|
||
/* | ||
* GNU Compiler | ||
*/ | ||
#elif defined ( __GNUC__ ) | ||
#include "cmsis_gcc.h" | ||
|
||
|
||
/* | ||
* IAR Compiler | ||
*/ | ||
#elif defined ( __ICCARM__ ) | ||
#include <cmsis_iccarm.h> | ||
|
||
|
||
/* | ||
* TI Arm Compiler | ||
*/ | ||
#elif defined ( __TI_ARM__ ) | ||
#include <cmsis_ccs.h> | ||
|
||
#ifndef __ASM | ||
#define __ASM __asm | ||
#endif | ||
#ifndef __INLINE | ||
#define __INLINE inline | ||
#endif | ||
#ifndef __STATIC_INLINE | ||
#define __STATIC_INLINE static inline | ||
#endif | ||
#ifndef __STATIC_FORCEINLINE | ||
#define __STATIC_FORCEINLINE __STATIC_INLINE | ||
#endif | ||
#ifndef __NO_RETURN | ||
#define __NO_RETURN __attribute__((noreturn)) | ||
#endif | ||
#ifndef CMSIS_DEPRECATED | ||
#define CMSIS_DEPRECATED __attribute__((deprecated)) | ||
#endif | ||
#ifndef __USED | ||
#define __USED __attribute__((used)) | ||
#endif | ||
#ifndef __WEAK | ||
#define __WEAK __attribute__((weak)) | ||
#endif | ||
#ifndef __PACKED | ||
#define __PACKED __attribute__((packed)) | ||
#endif | ||
#ifndef __PACKED_STRUCT | ||
#define __PACKED_STRUCT struct __attribute__((packed)) | ||
#endif | ||
#ifndef __PACKED_UNION | ||
#define __PACKED_UNION union __attribute__((packed)) | ||
#endif | ||
#ifndef __UNALIGNED_UINT32 | ||
struct __attribute__((packed)) T_UINT32 { uint32_t v; }; | ||
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) | ||
#endif | ||
#ifndef __ALIGNED | ||
#define __ALIGNED(x) __attribute__((aligned(x))) | ||
#endif | ||
#ifndef __RESTRICT | ||
#define __RESTRICT __restrict | ||
#endif | ||
#ifndef __COMPILER_BARRIER | ||
#warning No compiler specific solution for __COMPILER_BARRIER. __COMPILER_BARRIER is ignored. | ||
#define __COMPILER_BARRIER() (void)0 | ||
#endif | ||
|
||
|
||
/* | ||
* TASKING Compiler | ||
*/ | ||
#elif defined ( __TASKING__ ) | ||
/* | ||
* The CMSIS functions have been implemented as intrinsics in the compiler. | ||
* Please use "carm -?i" to get an up to date list of all intrinsics, | ||
* Including the CMSIS ones. | ||
*/ | ||
|
||
#ifndef __ASM | ||
#define __ASM __asm | ||
#endif | ||
#ifndef __INLINE | ||
#define __INLINE inline | ||
#endif | ||
#ifndef __STATIC_INLINE | ||
#define __STATIC_INLINE static inline | ||
#endif | ||
#ifndef __STATIC_FORCEINLINE | ||
#define __STATIC_FORCEINLINE __STATIC_INLINE | ||
#endif | ||
#ifndef __NO_RETURN | ||
#define __NO_RETURN __attribute__((noreturn)) | ||
#endif | ||
#ifndef CMSIS_DEPRECATED | ||
#define CMSIS_DEPRECATED __attribute__((deprecated)) | ||
#endif | ||
#ifndef __USED | ||
#define __USED __attribute__((used)) | ||
#endif | ||
#ifndef __WEAK | ||
#define __WEAK __attribute__((weak)) | ||
#endif | ||
#ifndef __PACKED | ||
#define __PACKED __packed__ | ||
#endif | ||
#ifndef __PACKED_STRUCT | ||
#define __PACKED_STRUCT struct __packed__ | ||
#endif | ||
#ifndef __PACKED_UNION | ||
#define __PACKED_UNION union __packed__ | ||
#endif | ||
#ifndef __UNALIGNED_UINT32 | ||
struct __packed__ T_UINT32 { uint32_t v; }; | ||
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) | ||
#endif | ||
#ifndef __ALIGNED | ||
#define __ALIGNED(x) __align(x) | ||
#endif | ||
#ifndef __RESTRICT | ||
#warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. | ||
#define __RESTRICT | ||
#endif | ||
#ifndef __COMPILER_BARRIER | ||
#warning No compiler specific solution for __COMPILER_BARRIER. __COMPILER_BARRIER is ignored. | ||
#define __COMPILER_BARRIER() (void)0 | ||
#endif | ||
|
||
|
||
/* | ||
* COSMIC Compiler | ||
*/ | ||
#elif defined ( __CSMC__ ) | ||
#include <cmsis_csm.h> | ||
|
||
#ifndef __ASM | ||
#define __ASM _asm | ||
#endif | ||
#ifndef __INLINE | ||
#define __INLINE inline | ||
#endif | ||
#ifndef __STATIC_INLINE | ||
#define __STATIC_INLINE static inline | ||
#endif | ||
#ifndef __STATIC_FORCEINLINE | ||
#define __STATIC_FORCEINLINE __STATIC_INLINE | ||
#endif | ||
#ifndef __NO_RETURN | ||
// NO RETURN is automatically detected hence no warning here | ||
#define __NO_RETURN | ||
#endif | ||
#ifndef __USED | ||
#warning No compiler specific solution for __USED. __USED is ignored. | ||
#define __USED | ||
#endif | ||
#ifndef CMSIS_DEPRECATED | ||
#warning No compiler specific solution for CMSIS_DEPRECATED. CMSIS_DEPRECATED is ignored. | ||
#define CMSIS_DEPRECATED | ||
#endif | ||
#ifndef __WEAK | ||
#define __WEAK __weak | ||
#endif | ||
#ifndef __PACKED | ||
#define __PACKED @packed | ||
#endif | ||
#ifndef __PACKED_STRUCT | ||
#define __PACKED_STRUCT @packed struct | ||
#endif | ||
#ifndef __PACKED_UNION | ||
#define __PACKED_UNION @packed union | ||
#endif | ||
#ifndef __UNALIGNED_UINT32 | ||
@packed struct T_UINT32 { uint32_t v; }; | ||
#define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v) | ||
#endif | ||
#ifndef __ALIGNED | ||
#warning No compiler specific solution for __ALIGNED. __ALIGNED is ignored. | ||
#define __ALIGNED(x) | ||
#endif | ||
#ifndef __RESTRICT | ||
#warning No compiler specific solution for __RESTRICT. __RESTRICT is ignored. | ||
#define __RESTRICT | ||
#endif | ||
#ifndef __COMPILER_BARRIER | ||
#warning No compiler specific solution for __COMPILER_BARRIER. __COMPILER_BARRIER is ignored. | ||
#define __COMPILER_BARRIER() (void)0 | ||
#endif | ||
|
||
|
||
#else | ||
#error Unknown compiler. | ||
#endif | ||
|
||
|
||
#endif /* __CMSIS_COMPILER_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/**************************************************************************//** | ||
* @file cmsis_cp15.h | ||
* @brief CMSIS compiler specific macros, functions, instructions | ||
* @version V1.0.0 | ||
* @date 15. June 2020 | ||
******************************************************************************/ | ||
/* | ||
* Copyright (c) 2020 Arm Limited. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* 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 | ||
* | ||
* www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* 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. | ||
*/ | ||
|
||
#if defined ( __ICCARM__ ) | ||
#pragma system_include /* treat file as system include file for MISRA check */ | ||
#elif defined (__clang__) | ||
#pragma clang system_header /* treat file as system include file */ | ||
#endif | ||
|
||
#ifndef __CMSIS_CP15_H | ||
#define __CMSIS_CP15_H | ||
|
||
|
||
|
||
|
||
#endif |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Did you consider adding the support inside the existing Core_A directory? (to reduce duplication)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, yes I've considered to use Core_A directory at the very beginning. But then I've ran into the problem that I have to pollute existing headers by AArch64 routine implementations.