Page 2 of 2
Re: Protected mode from MS-DOS
Posted: Wed Oct 12, 2011 7:23 am
by Chandra
Combuster wrote:Not quite, LGDT takes a reference to a GDTR structure as a regular memory operand. Instead, the problem is the GDTR.offset which should be the field holding the linear address where a virtual one is provided (i.e. your GDT is not some random offset into the IVT)
Oh yes, you're right. LGDT takes a near pointer. Again, there was a big issue with the GDTR structure,
BASE of the GDT structure must point to the linear address of the GDT itself so, my post wasn't that stupid afterall.
Re: Protected mode from MS-DOS
Posted: Wed Oct 12, 2011 8:09 am
by rdos
XenOS wrote:My recommendation is to write a multiboot compliant kernel and to boot it with GRUB. You can simply install GRUB on your hard drive and use it to boot whatever you like. You don't even need an extra partition for your kernel.
Even better, burn GRUB onto a CD, and put it into your CD-ROM drive when you want multi-boot. That is what I did on my Sony-Vario portable. Then you don''t need to worry about not having a floppy-disc drive, and not about the possibility that the hard-disc modification when installing GRUB would fail.