Skip to content
Snippets Groups Projects
Commit 797960fd authored by Graeme Russ's avatar Graeme Russ
Browse files

x86: Fix x86 Cold Boot

Commit 077e1958 broke the ability of the
x86 port to boot from a cold-reset by removing the initial IDT. Re-
instate the initial IDT to allow cold-booting of x86 boards
parent a806ee6f
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,7 @@ board_init16_ret: ...@@ -45,6 +45,7 @@ board_init16_ret:
wbinvd wbinvd
/* load the temporary Global Descriptor Table */ /* load the temporary Global Descriptor Table */
o32 cs lidt idt_ptr
o32 cs lgdt gdt_ptr o32 cs lgdt gdt_ptr
/* Now, we enter protected mode */ /* Now, we enter protected mode */
...@@ -68,6 +69,10 @@ code32start: ...@@ -68,6 +69,10 @@ code32start:
.long _start /* offset */ .long _start /* offset */
.word 0x10 /* segment */ .word 0x10 /* segment */
idt_ptr:
.word 0 /* limit */
.long 0 /* base */
/* /*
* The following Global Descriptor Table is just enough to get us into * The following Global Descriptor Table is just enough to get us into
* 'Flat Protected Mode' - It will be discarded as soon as the final * 'Flat Protected Mode' - It will be discarded as soon as the final
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment