expand protected mode code segment
This commit is contained in:
1 parent
da6f981a6a
commit
a90c727a9a
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -25,7 +25,7 @@
|
|||||||
- 0x07e00 - 0x08000: gpt partition header
|
- 0x07e00 - 0x08000: gpt partition header
|
||||||
- 0x08000 - 0x08200: stage 2 partition table entry
|
- 0x08000 - 0x08200: stage 2 partition table entry
|
||||||
- 0x08200 - 0x0c000: stage 2 text, stage 3 stack
|
- 0x08200 - 0x0c000: stage 2 text, stage 3 stack
|
||||||
- 0x0c000 : gdt
|
- 0x0e000 : gdt
|
||||||
- 0x10000 : stage 3 text
|
- 0x10000 : stage 3 text
|
||||||
|
|
||||||
0x10000: stage 3
|
0x10000: stage 3
|
||||||
|
|||||||
+2
-2
@@ -134,13 +134,13 @@ gdt_flat:
|
|||||||
dq 0
|
dq 0
|
||||||
|
|
||||||
; 32-bit code segment.
|
; 32-bit code segment.
|
||||||
; Bytes 0x0000 - 0xffff.
|
; Pages 0x0000 - 0xffff.
|
||||||
.segment_code_32:
|
.segment_code_32:
|
||||||
db 0xff, 0xff, \
|
db 0xff, 0xff, \
|
||||||
0x00, 0x00, \
|
0x00, 0x00, \
|
||||||
0x00, \
|
0x00, \
|
||||||
10011011b, \
|
10011011b, \
|
||||||
01000000b, \
|
11000000b, \
|
||||||
0x00
|
0x00
|
||||||
|
|
||||||
; 16-bit code segment, to use if we want to switch back to real mode.
|
; 16-bit code segment, to use if we want to switch back to real mode.
|
||||||
|
|||||||
Reference in new issue
Block a user