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:
parent
b829bc78c1
commit
b09b6b6ee8
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue