From 3f4567ea6e1b56184ba87c8bcc89622cb1b75305 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 20 Jul 2020 21:25:24 -0400 Subject: [PATCH] docs: remove restore comment about IP of 0 --- runtime/include/arch/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/include/arch/context.h b/runtime/include/arch/context.h index 5560afc..9e2551a 100644 --- a/runtime/include/arch/context.h +++ b/runtime/include/arch/context.h @@ -70,7 +70,7 @@ arch_context_restore(mcontext_t *active_context, struct arch_context *sandbox_co assert(sandbox_context->variant == arch_context_fast); assert(sandbox_context != &worker_thread_base_context); - /* TODO: Phani explained that we need to be able to restore a sandbox with an IP of 0. Why is this? */ + assert(sandbox_context->regs[ureg_rip]); assert(sandbox_context->regs[ureg_rsp]); active_context->gregs[REG_RSP] = sandbox_context->regs[ureg_rsp];