Protected mode from MS-DOS

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
Chandra
Member
Member
Posts: 487
Joined: Sat Jul 17, 2010 12:45 am

Re: Protected mode from MS-DOS

Post 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.
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
rdos
Member
Member
Posts: 3271
Joined: Wed Oct 01, 2008 1:55 pm

Re: Protected mode from MS-DOS

Post 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.
Post Reply