From 1d2f5d9893a44281403c8e8ae40857f277b7d6c7 Mon Sep 17 00:00:00 2001 From: NAKAMURA Gou Date: Fri, 27 Feb 2015 13:44:59 +0900 Subject: [PATCH] set is_gpr_valid to initial user context --- arch/x86/kernel/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu.c b/arch/x86/kernel/cpu.c index dcb41843..a562b157 100644 --- a/arch/x86/kernel/cpu.c +++ b/arch/x86/kernel/cpu.c @@ -855,6 +855,7 @@ void ihk_mc_init_user_process(ihk_mc_kernel_context_t *ctx, uctx->gpr.ss = USER_DS; uctx->gpr.rsp = user_sp; uctx->gpr.rflags = RFLAGS_IF; + uctx->is_gpr_valid = 1; ihk_mc_init_context(ctx, sp, (void (*)(void))enter_user_mode); ctx->rsp0 = (unsigned long)stack_pointer;