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
7bb73cdb
Commit
7bb73cdb
authored
17 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
nits
parent
8e670053
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
bootother.S
+2
-2
2 additions, 2 deletions
bootother.S
defs.h
+1
-1
1 addition, 1 deletion
defs.h
x86.h
+2
-0
2 additions, 0 deletions
x86.h
with
5 additions
and
3 deletions
bootother.S
+
2
−
2
View file @
7bb73cdb
...
...
@@ -15,8 +15,8 @@
#
#
This
code
is
identical
to
bootasm
.
S
except
:
#
-
it
does
not
need
to
enable
A20
#
-
it
uses
0
(
start
-
4
)
for
the
%
esp
#
-
it
jumps
to
0
(
start
-
8
)
instead
of
calling
cmain
#
-
it
uses
the
address
at
start
-
4
for
the
%
esp
#
-
it
jumps
to
the
address
at
start
-
8
instead
of
calling
cmain
.
set
PROT_MODE_CSEG
,
0x8
#
kernel
code
segment
selector
.
set
PROT_MODE_DSEG
,
0x10
#
kernel
data
segment
selector
...
...
This diff is collapsed.
Click to expand it.
defs.h
+
1
−
1
View file @
7bb73cdb
...
...
@@ -23,7 +23,7 @@ void kbd_intr(void);
void
panic
(
char
*
)
__attribute__
((
noreturn
));
// exec.c
int
exec
(
char
*
,
char
**
);
int
exec
(
char
*
,
char
**
);
// file.c
struct
file
*
filealloc
(
void
);
...
...
This diff is collapsed.
Click to expand it.
x86.h
+
2
−
0
View file @
7bb73cdb
...
...
@@ -5,6 +5,7 @@ static inline uchar
inb
(
ushort
port
)
{
uchar
data
;
asm
volatile
(
"in %1,%0"
:
"=a"
(
data
)
:
"d"
(
port
));
return
data
;
}
...
...
@@ -91,6 +92,7 @@ static inline void
cpuid
(
uint
info
,
uint
*
eaxp
,
uint
*
ebxp
,
uint
*
ecxp
,
uint
*
edxp
)
{
uint
eax
,
ebx
,
ecx
,
edx
;
asm
volatile
(
"cpuid"
:
"=a"
(
eax
),
"=b"
(
ebx
),
"=c"
(
ecx
),
"=d"
(
edx
)
:
"a"
(
info
));
...
...
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