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
22c73411
Commit
22c73411
authored
13 years ago
by
Frans Kaashoek
Browse files
Options
Downloads
Patches
Plain Diff
Shorten boot assembly
parent
5460667c
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
multiboot.S
+0
-15
0 additions, 15 deletions
multiboot.S
with
0 additions
and
15 deletions
multiboot.S
+
0
−
15
View file @
22c73411
...
...
@@ -37,23 +37,8 @@ multiboot_header:
.
long
multiboot_entry
#
Multiboot
entry
point
.
Machine
is
mostly
set
up
.
#
Configure
the
GDT
to
match
the
environment
that
our
usual
#
boot
loader
-
bootasm
.
S
-
sets
up
.
.
globl
multiboot_entry
multiboot_entry
:
#
lgdt
V2P_WO
(
gdtdesc
)
#
ljmp
$
(
SEG_KCODE
<<
3
),
$mbstart32
mbstart32
:
#
Set
up
the
protected
-
mode
data
segment
registers
movw
$
(
SEG_KDATA
<<
3
),
%
ax
#
Our
data
segment
selector
movw
%
ax
,
%
ds
#
->
DS
:
Data
Segment
movw
%
ax
,
%
es
#
->
ES
:
Extra
Segment
movw
%
ax
,
%
ss
#
->
SS
:
Stack
Segment
movw
$
0
,
%
ax
#
Zero
segments
not
ready
for
use
movw
%
ax
,
%
fs
#
->
FS
movw
%
ax
,
%
gs
#
->
GS
movl
$
(
V2P_WO
(
bootpgdir
)),
%
eax
movl
%
eax
,
%
cr3
#
Turn
on
paging
.
...
...
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