Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xv6-19au
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
csep551
xv6-19au
Commits
ab4cedb5
Commit
ab4cedb5
authored
17 years ago
by
rtm
Browse files
Options
Downloads
Patches
Plain Diff
continuous quality management
parent
ef218524
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
asm.h
+1
-1
1 addition, 1 deletion
asm.h
spinlock.c
+2
-2
2 additions, 2 deletions
spinlock.c
x86.h
+3
-3
3 additions, 3 deletions
x86.h
with
6 additions
and
6 deletions
asm.h
+
1
−
1
View file @
ab4cedb5
//
// macros to create x86 segments
from assembler
//
assembler
macros to create x86 segments
//
#define SEG_NULLASM \
...
...
This diff is collapsed.
Click to expand it.
spinlock.c
+
2
−
2
View file @
ab4cedb5
...
...
@@ -20,8 +20,8 @@ initlock(struct spinlock *lock, char *name)
// Acquire the lock.
// Loops (spins) until the lock is acquired.
//
(Because contention is handled by spinning,
//
must not go to sleep holding any locks.)
//
Holding a lock for a long time may cause
//
other CPUs to waste time spinning to acquire it.
void
acquire
(
struct
spinlock
*
lock
)
{
...
...
This diff is collapsed.
Click to expand it.
x86.h
+
3
−
3
View file @
ab4cedb5
// Special assembly routines to access x86-specific
// hardware instructions.
// Routines to let C code use special x86 instructions.
static
inline
uchar
inb
(
ushort
port
)
...
...
@@ -131,7 +130,8 @@ sti(void)
asm
volatile
(
"sti"
);
}
// Layout of the trap frame on the stack upon entry to trap.
// Layout of the trap frame built on the stack by the
// hardware and by trapasm.S, and passed to trap().
struct
trapframe
{
// registers as pushed by pusha
uint
edi
;
...
...
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