From c2d18c921e1161c43a49d9647a42273e3569b1e8 Mon Sep 17 00:00:00 2001 From: Joshua Saxby <Joshua2.Saxby@live.uwe.ac.uk> Date: Mon, 2 Dec 2019 16:15:07 +0000 Subject: [PATCH] Fix invalid register name error --- userprog/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userprog/process.c b/userprog/process.c index 98ff0aa..6577694 100644 --- a/userprog/process.c +++ b/userprog/process.c @@ -79,7 +79,7 @@ start_process (void *file_name_) arguments on the stack in the form of a `struct intr_frame', we just point the stack pointer (%initial_stack_pointer) to our stack frame and jump to it. */ - asm volatile ("movl %0, %%initial_stack_pointer; jmp intr_exit" : : "g" (&if_) : "memory"); + asm volatile ("movl %0, %%esp; jmp intr_exit" : : "g" (&if_) : "memory"); NOT_REACHED (); } -- GitLab