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
75b78273
Verified
Commit
75b78273
authored
3 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Load gdt before and after thunk
parent
6ed05fca
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
asm/x86-unknown-none/thunk.asm
+6
-0
6 additions, 0 deletions
asm/x86-unknown-none/thunk.asm
with
6 additions
and
0 deletions
asm/x86-unknown-none/thunk.asm
+
6
−
0
View file @
75b78273
...
...
@@ -32,6 +32,9 @@ thunk:
; save esp
mov
[
.esp
],
esp
; load gdt
lgdt
[
gdtr
]
; far jump to protected mode 16-bit
jmp
gdt.pm16_code
:
.pm16
...
...
@@ -121,6 +124,9 @@ USE16
; save registers
pushad
; load gdt (BIOS sometimes overwrites this)
lgdt
[
gdtr
]
; restore cr0, will enable protected mode
mov
eax
,
[
.cr0
]
mov
cr0
,
eax
...
...
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