arch: arc: remove unused codes
base.user_options is already set in k_thread_ user_mode_enter Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
parent
5dd552e66b
commit
fb3d2d3785
2 changed files with 1 additions and 2 deletions
|
@ -40,7 +40,7 @@ menu "ARCv2 Family Options"
|
||||||
|
|
||||||
config CPU_ARCV2
|
config CPU_ARCV2
|
||||||
bool
|
bool
|
||||||
select ARCH_HAS_STACK_PROTECTION
|
select ARCH_HAS_STACK_PROTECTION
|
||||||
select ARCH_HAS_USERSPACE if ARC_CORE_MPU
|
select ARCH_HAS_USERSPACE if ARC_CORE_MPU
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
|
|
|
@ -194,7 +194,6 @@ void _new_thread(struct k_thread *thread, k_thread_stack_t *stack,
|
||||||
FUNC_NORETURN void _arch_user_mode_enter(k_thread_entry_t user_entry,
|
FUNC_NORETURN void _arch_user_mode_enter(k_thread_entry_t user_entry,
|
||||||
void *p1, void *p2, void *p3)
|
void *p1, void *p2, void *p3)
|
||||||
{
|
{
|
||||||
_current->base.user_options |= K_USER;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* adjust the thread stack layout
|
* adjust the thread stack layout
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue