Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
6f2b626d
Commit
6f2b626d
authored
18 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
remove non-idiomatic increment/decrement
parent
51716a86
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
console.c
+2
-4
2 additions, 4 deletions
console.c
fd.c
+1
-1
1 addition, 1 deletion
fd.c
trap.c
+0
-5
0 additions, 5 deletions
trap.c
with
3 additions
and
10 deletions
console.c
+
2
−
4
View file @
6f2b626d
...
...
@@ -53,7 +53,7 @@ real_cons_putc(int c)
}
else
{
c
|=
0x0700
;
// black on white
crt
[
ind
]
=
c
;
ind
+=
1
;
ind
++
;
}
if
((
ind
/
80
)
>=
24
){
...
...
@@ -100,10 +100,8 @@ printint(int xx, int base, int sgn)
if
(
neg
)
buf
[
i
++
]
=
'-'
;
while
(
i
>
0
){
i
-=
1
;
while
(
--
i
>=
0
)
real_cons_putc
(
buf
[
i
]);
}
}
/*
...
...
This diff is collapsed.
Click to expand it.
fd.c
+
1
−
1
View file @
6f2b626d
...
...
@@ -104,6 +104,6 @@ fd_incref(struct fd *fd)
acquire
(
&
fd_table_lock
);
if
(
fd
->
count
<
1
||
fd
->
type
==
FD_CLOSED
)
panic
(
"fd_reference"
);
fd
->
count
+=
1
;
fd
->
count
++
;
release
(
&
fd_table_lock
);
}
This diff is collapsed.
Click to expand it.
trap.c
+
0
−
5
View file @
6f2b626d
...
...
@@ -71,13 +71,8 @@ trap(struct Trapframe *tf)
if
(
cpus
[
cpu
()].
nlock
)
panic
(
"timer interrupt while holding a lock"
);
if
(
cp
){
#if 1
if
((
read_eflags
()
&
FL_IF
)
==
0
)
panic
(
"timer interrupt but interrupts now disabled"
);
#else
cpus
[
cpu
()].
clis
+=
1
;
sti
();
#endif
if
(
cp
->
killed
)
proc_exit
();
if
(
cp
->
state
==
RUNNING
)
...
...
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