diff --git a/userprog/argument_parsing.h b/userprog/argument_parsing.h index 78f4e0eca38b95a4c16e3963d9944105bc1906ef..495f63428e5376880309167d5bd964651378772f 100644 --- a/userprog/argument_parsing.h +++ b/userprog/argument_parsing.h @@ -13,9 +13,10 @@ int parse_arguments(const char* command_line, char***argv); /* * Given stack pointer `esp`, argument count `argc` and arguments array `argv`, * Populates the stack pointed to by the stack pointer with the given arguments. - * TODO: clarify what, if anything, `esp` stands for and rename it to something - * clearer if possible. + * esp is the initial stack pointer from process.c, + * I have used stackPointer as the name as that makes sense inside populate_stack, + * In process.c esp has been renamed to initialStackPointer */ -void populate_stack(void* esp, int argc, char** argv); +void populate_stack(void* stackPointer, int argc, char** argv); #endif /* userprog/argument_parsing.h */