Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TDDE47
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Nordin
TDDE47
Commits
79faf065
Commit
79faf065
authored
1 year ago
by
hugno051
Browse files
Options
Downloads
Patches
Plain Diff
process c
parent
6adc6283
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userprog/process.c
+4
-2
4 additions, 2 deletions
userprog/process.c
with
4 additions
and
2 deletions
userprog/process.c
+
4
−
2
View file @
79faf065
...
@@ -60,9 +60,11 @@ static void start_process(void* cmd_line_)
...
@@ -60,9 +60,11 @@ static void start_process(void* cmd_line_)
if_
.
gs
=
if_
.
fs
=
if_
.
es
=
if_
.
ds
=
if_
.
ss
=
SEL_UDSEG
;
if_
.
gs
=
if_
.
fs
=
if_
.
es
=
if_
.
ds
=
if_
.
ss
=
SEL_UDSEG
;
if_
.
cs
=
SEL_UCSEG
;
if_
.
cs
=
SEL_UCSEG
;
if_
.
eflags
=
FLAG_IF
|
FLAG_MBS
;
if_
.
eflags
=
FLAG_IF
|
FLAG_MBS
;
char
*
file_name
;
char
*
token
=
strtok_r
(
cmd_line
,
" "
,
&
if_
.
esp
);
file_name
=
token
;
// Note: load requires the file name only, not the entire cmd_line
// Note: load requires the file name only, not the entire cmd_line
success
=
load
(
cmd_lin
e
,
&
if_
.
eip
,
&
if_
.
esp
);
success
=
load
(
file_nam
e
,
&
if_
.
eip
,
&
if_
.
esp
);
/* If load failed, quit. */
/* If load failed, quit. */
palloc_free_page
(
cmd_line
);
palloc_free_page
(
cmd_line
);
...
...
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