gdb over serial by Lubomir Kundrak and cleaned-up/updated by me (phcoder)

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
This commit is contained in:
Lubomir Kundrak authored and Vladimir 'phcoder' Serbinenko committed 2011-11-14 22:58:11 +01:00
1 parent 581ffa8a24
commit 66d6a7937b
9 files changed
+893

No files matched your search

+12
View File
@@ -117,6 +117,12 @@ gdt:
gdtdesc:
.word 0x27 /* limit */
.long gdt /* addr */
realidt:
.word 0
.long 0
protidt:
.word 0
.long 0
/*
* These next two routines, "real_to_prot" and "prot_to_real" are structured
@@ -168,6 +174,9 @@ protcseg:
/* zero %eax */
xorl %eax, %eax
sidt realidt
lidt protidt
/* return on the old (or initialized) stack! */
ret
/*
@@ -194,6 +203,9 @@ prot_to_real:
/* just in case, set GDT */
lgdt gdtdesc
sidt protidt
lidt realidt
/* save the protected mode stack */
movl %esp, %eax
movl %eax, protstack