Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
triazo
/
kernel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
3
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ed95d5f7
authored
Sep 06, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Attempted fix. A tiny bit better.
parent
0a7e2777
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
boot.asm
boot.asm
View file @
ed95d5f7
...
...
@@ -114,22 +114,29 @@ Main: ;main section
int
0x15
;; now to try protected mode...
cli
lgdt
[gdt
info
]
lgdt
[gdt]
mov
eax
,
cr0
or
al
,
1
mov
cr0
,
eax
jmp
08
h
:
PMain
gdtinfo
:
dw
gdt_end
-
gdt
-
1
;last byte in table
dd
gdt
;start of table
gdt
:
gdt
dd
0
,
0
flatdesc
db
0xff
,
0xff
,
0
,
0
,
0
,
10010010
b
,
11001111
b
,
0
gdt_end
:
db
0x55
db
0xAA
times
16
db
0
dw
0xffff
; segment limit
.
src
:
dw
0
db
2
db
0x93
; data access rights
dw
0
dw
0xffff
; segment limit
.
dest
:
dw
0
db
0x10
; load protected-mode kernel to 100000h
db
0x93
; data access rights
dw
0
times
16
db
0
PMain
:
nop
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment