From dab1a0d62f4e4319cffdaa6a9ba04d39cce660e2 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Mon, 14 Mar 2022 19:47:45 +0800 Subject: [PATCH] feature: libc opt Signed-off-by: arvinzzz Change-Id: I9252c83e5b8a40f23e0df04ea165b9f51a4482b3 --- Kconfig | 1 + arch/arm/Kconfig | 6 +++++- kal/libc/newlib/porting/include/sys/prctl.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index dadbeb5a..1fd3455a 100644 --- a/Kconfig +++ b/Kconfig @@ -604,6 +604,7 @@ config SECURE_TRUSTZONE bool "Enable ARM TrustZone" default n depends on ARCH_ARM + select ARCH_ARM_V8M config SECURE_HEAP_SIZE int "TrustZone Heap Size (bytes)" default 2048 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9c82c634..dc020629 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -16,12 +16,16 @@ config ARCH_ARM_AARCH32 config ARCH_ARM_V7M bool +config ARCH_ARM_V8M + bool + config ARCH_ARM_V5TE bool config ARCH_ARM_VER string default "armv7-m" if ARCH_ARM_V7M + default "armv8-m" if ARCH_ARM_V8M default "armv5te" if ARCH_ARM_V5TE # @@ -96,7 +100,7 @@ config ARCH_CORTEX_M33 config ARCH_CORTEX_M55 bool - select ARCH_ARM_V7M + select ARCH_ARM_V8M select ARCH_ARM_AARCH32 select ARCH_FPU_VFP_V4 select ARCH_FPU_VFP_D32 diff --git a/kal/libc/newlib/porting/include/sys/prctl.h b/kal/libc/newlib/porting/include/sys/prctl.h index edb1ff1d..4527fd68 100644 --- a/kal/libc/newlib/porting/include/sys/prctl.h +++ b/kal/libc/newlib/porting/include/sys/prctl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2021 Huawei Device Co., Ltd. All rights reserved. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: