Skip to content
Snippets Groups Projects
Commit 103bbeb9 authored by a2-stratford's avatar a2-stratford
Browse files

Updated argument_parsing.h

parent 7133e384
Branches
No related tags found
1 merge request!5Alex/6 implement populate stack process
...@@ -13,9 +13,10 @@ int parse_arguments(const char* command_line, char***argv); ...@@ -13,9 +13,10 @@ int parse_arguments(const char* command_line, char***argv);
/* /*
* Given stack pointer `esp`, argument count `argc` and arguments array `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. * 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 * esp is the initial stack pointer from process.c,
* clearer if possible. * 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 */ #endif /* userprog/argument_parsing.h */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment