refactor: Optimize the context switch overhead
[lunaix-os.git] / lunaix-os / kernel / exe / exec.c
index 3c4e253249b99c0ba999659b1b09a70f88654c47..a8461269ec3d15d24431c8fb4bbe8e99764c12ab 100644 (file)
@@ -220,7 +220,7 @@ __DEFINE_LXSYSCALL3(int,
 
     // we will jump to new entry point (_u_start) upon syscall's
     // return so execve 'will not return' from the perspective of it's invoker
-    volatile struct exec_param* execp = __current->intr_ctx.execp;
+    volatile struct exec_param* execp = __current->intr_ctx->execp;
     execp->esp = container.stack_top;
     execp->eip = container.exe.entry;