From 103bbeb96ea7a4d3ba9d358d3e648ee9a1be2cde Mon Sep 17 00:00:00 2001 From: Alex Stratford <alexander3.stratford@live.uwe.ac.uk> Date: Sat, 30 Nov 2019 01:38:30 +0000 Subject: [PATCH] Updated argument_parsing.h --- userprog/argument_parsing.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/userprog/argument_parsing.h b/userprog/argument_parsing.h index 78f4e0e..495f634 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 */ -- GitLab