arm: Use a consistent type (uintptr_t) for g_idle_topstack

This commit is contained in:
YAMAMOTO Takashi 2020-11-09 18:07:39 +09:00 committed by Xiang Xiao
parent 09b59bc225
commit 35c6b4ad10
10 changed files with 13 additions and 10 deletions

View File

@ -212,7 +212,7 @@ EXTERN volatile uint32_t *g_current_regs[1];
* CONFIG_RAM_END * CONFIG_RAM_END
*/ */
EXTERN const uint32_t g_idle_topstack; EXTERN const uintptr_t g_idle_topstack;
/* Address of the saved user stack pointer */ /* Address of the saved user stack pointer */

View File

@ -69,7 +69,7 @@
* aligned). * aligned).
*/ */
const uint32_t g_idle_topstack = (uint32_t)&_ebss + const uintptr_t g_idle_topstack = (uintptr_t)&_ebss +
CONFIG_IDLETHREAD_STACKSIZE; CONFIG_IDLETHREAD_STACKSIZE;
/**************************************************************************** /****************************************************************************

View File

@ -80,7 +80,7 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
const uint32_t g_idle_topstack = IDLE_STACK; const uintptr_t g_idle_topstack = IDLE_STACK;
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions

View File

@ -340,7 +340,8 @@
* aligned). * aligned).
*/ */
const uint32_t g_idle_topstack = (uint32_t)&_ebss + CONFIG_IDLETHREAD_STACKSIZE; const uintptr_t g_idle_topstack = (uintptr_t)&_ebss +
CONFIG_IDLETHREAD_STACKSIZE;
#ifdef MM_HAVE_REGION #ifdef MM_HAVE_REGION
static uint8_t g_mem_region_next = 0; static uint8_t g_mem_region_next = 0;

View File

@ -143,7 +143,8 @@
* aligned). * aligned).
*/ */
const uint32_t g_idle_topstack = (uint32_t)&_ebss + CONFIG_IDLETHREAD_STACKSIZE; const uintptr_t g_idle_topstack = (uintptr_t)&_ebss +
CONFIG_IDLETHREAD_STACKSIZE;
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions

View File

@ -95,7 +95,7 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
const uint32_t g_idle_topstack = IDLE_STACK; const uintptr_t g_idle_topstack = IDLE_STACK;
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions

View File

@ -97,7 +97,8 @@
* aligned). * aligned).
*/ */
const uint32_t g_idle_topstack = (uint32_t)&_ebss + CONFIG_IDLETHREAD_STACKSIZE; const uintptr_t g_idle_topstack = (uintptr_t)&_ebss +
CONFIG_IDLETHREAD_STACKSIZE;
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions

View File

@ -77,7 +77,7 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
const uint32_t g_idle_topstack = IDLE_STACK; const uintptr_t g_idle_topstack = IDLE_STACK;
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions

View File

@ -77,7 +77,7 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
const uint32_t g_idle_topstack = IDLE_STACK; const uintptr_t g_idle_topstack = IDLE_STACK;
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions

View File

@ -65,7 +65,7 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
const uint32_t g_idle_topstack = IDLE_STACK; const uintptr_t g_idle_topstack = IDLE_STACK;
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions