Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pintos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Project Purple Stallion
Pintos
Commits
103bbeb9
Commit
103bbeb9
authored
5 years ago
by
a2-stratford
Browse files
Options
Downloads
Patches
Plain Diff
Updated argument_parsing.h
parent
7133e384
Branches
Branches containing commit
No related tags found
1 merge request
!5
Alex/6 implement populate stack process
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
userprog/argument_parsing.h
+4
-3
4 additions, 3 deletions
userprog/argument_parsing.h
with
4 additions
and
3 deletions
userprog/argument_parsing.h
+
4
−
3
View file @
103bbeb9
...
@@ -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 */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment