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:
Wayne Ren 2018-06-07 16:36:37 +08:00 committed by Maureen Helm
commit fb3d2d3785
2 changed files with 1 additions and 2 deletions

View file

@ -40,7 +40,7 @@ menu "ARCv2 Family Options"
config CPU_ARCV2
bool
select ARCH_HAS_STACK_PROTECTION
select ARCH_HAS_STACK_PROTECTION
select ARCH_HAS_USERSPACE if ARC_CORE_MPU
default y
help

View file

@ -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,
void *p1, void *p2, void *p3)
{
_current->base.user_options |= K_USER;
/*
* adjust the thread stack layout