summaryrefslogtreecommitdiff
path: root/libcpu/arm/cortex-m33
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-03-31 14:44:02 +0800
committerGitHub <[email protected]>2021-03-31 14:44:02 +0800
commitebe9d15d6f3760455e479546c829b7a4e25cddba (patch)
treea082cb39a09e0d26e97b07edc1cb5170f64a7bdb /libcpu/arm/cortex-m33
parent1ba020f3c89fbf2ac2a5b58424852e501fd59a91 (diff)
parenta225ca8014aae63f2d6ef46811fe8d689981e54a (diff)
Merge pull request #32 from RT-Thread/master
pr
Diffstat (limited to 'libcpu/arm/cortex-m33')
-rw-r--r--libcpu/arm/cortex-m33/cpuport.c4
-rw-r--r--libcpu/arm/cortex-m33/trustzone.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/libcpu/arm/cortex-m33/cpuport.c b/libcpu/arm/cortex-m33/cpuport.c
index 41325105d7..928689d9c8 100644
--- a/libcpu/arm/cortex-m33/cpuport.c
+++ b/libcpu/arm/cortex-m33/cpuport.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -457,7 +457,7 @@ RT_WEAK void rt_hw_cpu_reset(void)
* @return return the index of the first bit set. If value is 0, then this function
* shall return 0.
*/
-#if defined(__CC_ARM)
+#if defined(__CC_ARM)
__asm int __rt_ffs(int value)
{
CMP r0, #0x00
diff --git a/libcpu/arm/cortex-m33/trustzone.c b/libcpu/arm/cortex-m33/trustzone.c
index 5f37ddbb8f..f49f0c24f8 100644
--- a/libcpu/arm/cortex-m33/trustzone.c
+++ b/libcpu/arm/cortex-m33/trustzone.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -31,7 +31,7 @@ extern int tzcall(int id, rt_ubase_t arg0, rt_ubase_t arg1, rt_ubase_t arg2);
rt_ubase_t rt_trustzone_current_context;
-#if defined(__CC_ARM)
+#if defined(__CC_ARM)
static __inline rt_uint32_t __get_IPSR(void)
{
register rt_uint32_t result __asm("ipsr");
@@ -78,7 +78,7 @@ rt_err_t rt_trustzone_enter(rt_ubase_t module)
rt_trustzone_init();
if (tzcall(TZ_ALLOC_CONTEXT_ID, module, 0, 0))
{
- return RT_EOK;
+ return RT_EOK;
}
return -RT_ERROR;
}