Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
15ce79de
Commit
15ce79de
authored
16 years ago
by
kolya
Browse files
Options
Downloads
Patches
Plain Diff
check cp->killed before returning to user from a timer interrupt
parent
00ce31c0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
trap.c
+4
-0
4 additions, 0 deletions
trap.c
with
4 additions
and
0 deletions
trap.c
+
4
−
0
View file @
15ce79de
...
...
@@ -91,4 +91,8 @@ trap(struct trapframe *tf)
// If interrupts were on while locks held, would need to check nlock.
if
(
cp
&&
cp
->
state
==
RUNNING
&&
tf
->
trapno
==
IRQ_OFFSET
+
IRQ_TIMER
)
yield
();
// Check if the process has been killed since we yielded
if
(
cp
&&
cp
->
killed
&&
(
tf
->
cs
&
3
)
==
DPL_USER
)
exit
();
}
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