Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bootloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
redox-os
bootloader
Commits
2dccb065
Commit
2dccb065
authored
4 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Support for RMM
parent
6adcce54
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
x86_64/startup-x86_64.asm
+5
-5
5 additions, 5 deletions
x86_64/startup-x86_64.asm
with
5 additions
and
5 deletions
x86_64/startup-x86_64.asm
+
5
−
5
View file @
2dccb065
...
@@ -63,12 +63,12 @@ startup_arch:
...
@@ -63,12 +63,12 @@ startup_arch:
rep
stosd
rep
stosd
xor
edi
,
edi
xor
edi
,
edi
;Link first
PML4
and
second to last
PML4 to PDP
;Link first
user
and
first kernel
PML4 to PDP
mov
DWORD
[
es
:
edi
],
0x71000
|
1
<<
1
|
1
mov
DWORD
[
es
:
edi
],
0x71000
|
1
<<
1
|
1
mov
DWORD
[
es
:
edi
+
510
*
8
],
0x71000
|
1
<<
1
|
1
mov
DWORD
[
es
:
edi
+
256
*
8
],
0x71000
|
1
<<
1
|
1
; Link last PML4 to PML4 for recursive compatibility
mov
DWORD
[
es
:
edi
+
511
*
8
],
0x70000
|
1
<<
1
|
1
add
edi
,
0x1000
add
edi
,
0x1000
;Link last PML4 to PML4
mov
DWORD
[
es
:
edi
-
8
],
0x70000
|
1
<<
1
|
1
;Link first four PDP to PD
;Link first four PDP to PD
mov
DWORD
[
es
:
edi
],
0x72000
|
1
<<
1
|
1
mov
DWORD
[
es
:
edi
],
0x72000
|
1
<<
1
|
1
mov
DWORD
[
es
:
edi
+
8
],
0x73000
|
1
<<
1
|
1
mov
DWORD
[
es
:
edi
+
8
],
0x73000
|
1
<<
1
|
1
...
@@ -123,7 +123,7 @@ long_mode:
...
@@ -123,7 +123,7 @@ long_mode:
mov
ss
,
rax
mov
ss
,
rax
; stack_base
; stack_base
mov
rsi
,
0xFFFF
FF
0000080000
mov
rsi
,
0xFFFF
80
0000080000
mov
[
args.stack_base
],
rsi
mov
[
args.stack_base
],
rsi
; stack_size
; stack_size
mov
rcx
,
0x1F000
mov
rcx
,
0x1F000
...
...
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