arch: arc: add comments for _load_stack_check_regs

add comments for _load_stack_check_regs to avoid
wrong usage

Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
Wayne Ren 2018-06-04 10:01:27 +08:00 committed by Anas Nashif
commit b09b6b6ee8
2 changed files with 5 additions and 1 deletions

View file

@ -65,7 +65,7 @@ struct _thread_arch {
u32_t k_stack_top;
#ifdef CONFIG_USERSPACE
u32_t u_stack_base;
u32_t u_stack_top ;
u32_t u_stack_top;
#endif
#endif

View file

@ -242,6 +242,10 @@ extern "C" {
.endm
/*
* To use this macor, r2 should have the value of thread struct pointer to
* _kernel.current. r3 is a scratch reg.
*/
.macro _load_stack_check_regs
#ifdef CONFIG_ARC_HAS_SECURE
ld r3, [r2, _thread_offset_to_k_stack_base]