From 6cb7a15ddc9e6662d33dfcea261d5517ea76371c Mon Sep 17 00:00:00 2001 From: gaurav-aws Date: Thu, 28 Mar 2019 00:00:46 +0000 Subject: [PATCH] Export port architecture name for COrtex-M33. This can be used by debuggers to find the port in-use to be able to correctly decode the context stored on the stack. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2648 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- FreeRTOS/Source/include/portable.h | 4 ++++ FreeRTOS/Source/portable/ARMv8M/non_secure/portmacro.h | 1 + FreeRTOS/Source/portable/GCC/ARM_CM33/non_secure/portmacro.h | 1 + .../Source/portable/GCC/ARM_CM33_NTZ/non_secure/portmacro.h | 1 + FreeRTOS/Source/portable/IAR/ARM_CM33/non_secure/portmacro.h | 1 + .../Source/portable/IAR/ARM_CM33_NTZ/non_secure/portmacro.h | 1 + 6 files changed, 9 insertions(+) diff --git a/FreeRTOS/Source/include/portable.h b/FreeRTOS/Source/include/portable.h index aa1ee470d..0daca5f93 100644 --- a/FreeRTOS/Source/include/portable.h +++ b/FreeRTOS/Source/include/portable.h @@ -88,6 +88,10 @@ must be set in the compiler's include path. */ #define portHAS_STACK_OVERFLOW_CHECKING 0 #endif +#ifndef portARCH_NAME + #define portARCH_NAME NULL +#endif + #ifdef __cplusplus extern "C" { #endif diff --git a/FreeRTOS/Source/portable/ARMv8M/non_secure/portmacro.h b/FreeRTOS/Source/portable/ARMv8M/non_secure/portmacro.h index 504257070..4dede1716 100644 --- a/FreeRTOS/Source/portable/ARMv8M/non_secure/portmacro.h +++ b/FreeRTOS/Source/portable/ARMv8M/non_secure/portmacro.h @@ -87,6 +87,7 @@ typedef unsigned long UBaseType_t; /** * Architecture specifics. */ +#define portARCH_NAME "Cortex-M33" #define portSTACK_GROWTH ( -1 ) #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) #define portBYTE_ALIGNMENT 8 diff --git a/FreeRTOS/Source/portable/GCC/ARM_CM33/non_secure/portmacro.h b/FreeRTOS/Source/portable/GCC/ARM_CM33/non_secure/portmacro.h index 504257070..4dede1716 100644 --- a/FreeRTOS/Source/portable/GCC/ARM_CM33/non_secure/portmacro.h +++ b/FreeRTOS/Source/portable/GCC/ARM_CM33/non_secure/portmacro.h @@ -87,6 +87,7 @@ typedef unsigned long UBaseType_t; /** * Architecture specifics. */ +#define portARCH_NAME "Cortex-M33" #define portSTACK_GROWTH ( -1 ) #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) #define portBYTE_ALIGNMENT 8 diff --git a/FreeRTOS/Source/portable/GCC/ARM_CM33_NTZ/non_secure/portmacro.h b/FreeRTOS/Source/portable/GCC/ARM_CM33_NTZ/non_secure/portmacro.h index 504257070..4dede1716 100644 --- a/FreeRTOS/Source/portable/GCC/ARM_CM33_NTZ/non_secure/portmacro.h +++ b/FreeRTOS/Source/portable/GCC/ARM_CM33_NTZ/non_secure/portmacro.h @@ -87,6 +87,7 @@ typedef unsigned long UBaseType_t; /** * Architecture specifics. */ +#define portARCH_NAME "Cortex-M33" #define portSTACK_GROWTH ( -1 ) #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) #define portBYTE_ALIGNMENT 8 diff --git a/FreeRTOS/Source/portable/IAR/ARM_CM33/non_secure/portmacro.h b/FreeRTOS/Source/portable/IAR/ARM_CM33/non_secure/portmacro.h index 504257070..4dede1716 100644 --- a/FreeRTOS/Source/portable/IAR/ARM_CM33/non_secure/portmacro.h +++ b/FreeRTOS/Source/portable/IAR/ARM_CM33/non_secure/portmacro.h @@ -87,6 +87,7 @@ typedef unsigned long UBaseType_t; /** * Architecture specifics. */ +#define portARCH_NAME "Cortex-M33" #define portSTACK_GROWTH ( -1 ) #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) #define portBYTE_ALIGNMENT 8 diff --git a/FreeRTOS/Source/portable/IAR/ARM_CM33_NTZ/non_secure/portmacro.h b/FreeRTOS/Source/portable/IAR/ARM_CM33_NTZ/non_secure/portmacro.h index 504257070..4dede1716 100644 --- a/FreeRTOS/Source/portable/IAR/ARM_CM33_NTZ/non_secure/portmacro.h +++ b/FreeRTOS/Source/portable/IAR/ARM_CM33_NTZ/non_secure/portmacro.h @@ -87,6 +87,7 @@ typedef unsigned long UBaseType_t; /** * Architecture specifics. */ +#define portARCH_NAME "Cortex-M33" #define portSTACK_GROWTH ( -1 ) #define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ ) #define portBYTE_ALIGNMENT 8 -- 2.39.5