ARC: make variables with regs and addresses bit agnostic

Make variables where we store CPU registers values and
memory addresses bit agnostic.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2020-11-11 22:07:57 +03:00 committed by Kumar Gala
commit 0d859796be
4 changed files with 98 additions and 98 deletions

View file

@ -35,7 +35,7 @@ extern "C" {
#endif
struct _callee_saved {
uint32_t sp; /* r28 */
uintptr_t sp; /* r28 */
};
typedef struct _callee_saved _callee_saved_t;
@ -48,16 +48,16 @@ struct _thread_arch {
/* High address of stack region, stack grows downward from this
* location. Usesd for hardware stack checking
*/
uint32_t k_stack_base;
uint32_t k_stack_top;
uintptr_t k_stack_base;
uintptr_t k_stack_top;
#ifdef CONFIG_USERSPACE
uint32_t u_stack_base;
uint32_t u_stack_top;
uintptr_t u_stack_base;
uintptr_t u_stack_top;
#endif
#endif
#ifdef CONFIG_USERSPACE
uint32_t priv_stack_start;
uintptr_t priv_stack_start;
#endif
};