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
5c292b3d
Commit
5c292b3d
authored
13 years ago
by
Robert Morris
Browse files
Options
Downloads
Patches
Plain Diff
simplify the end of entry.S
parent
5e083578
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entry.S
+8
-9
8 additions, 9 deletions
entry.S
with
8 additions
and
9 deletions
entry.S
+
8
−
9
View file @
5c292b3d
...
...
@@ -51,15 +51,14 @@ entry:
orl
$
(
CR0_PG
|
CR0_WP
),
%
eax
movl
%
eax
,
%
cr0
#
now
switch
to
using
addresses
above
KERNBASE
#
call
addresses
are
pc
-
relative
so
we
jump
though
this
hoop
:
mov
$relocated
,
%
eax
jmp
*%
eax
relocated
:
#
Set
up
the
stack
pointer
and
call
into
C
.
#
Set
up
the
stack
pointer
.
movl
$
(
stack
+
STACK
),
%
esp
call
main
spin
:
jmp
spin
#
Call
main
(),
which
switches
to
executing
at
#
high
addresses
.
The
indirect
call
is
needed
because
#
the
assembler
produces
a
PC
-
relative
instruction
#
for
a
direct
call
.
mov
$main
,
%
eax
jmp
*%
eax
.
comm
stack
,
STACK
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