i use bochs,,
fdirectly go to protected mode..
then go back to real mode...
but when i again enable
a20 lines and set cr0 first bit to 1
i get triple fault..
and how to swithc to virtual mode.. code please.
problem entering again to proteectd mode..
Re: problem entering again to proteectd mode..
Hi,
IIRC, the multiboot specification tells you not to rely on the value of GDTR or the state of the GDT. For this reason, are you loading a completely new GDT when you switch back to PMode? Other than that, code please.
As for v86 mode, you need to have multitasking set up and set VM in the new task's EFLAGS register. The only other addition you need to make is adding the 16 bit segment registers to the bottom of the new task's stack. Have you already got multitasking?
Cheers,
Adam
IIRC, the multiboot specification tells you not to rely on the value of GDTR or the state of the GDT. For this reason, are you loading a completely new GDT when you switch back to PMode? Other than that, code please.
As for v86 mode, you need to have multitasking set up and set VM in the new task's EFLAGS register. The only other addition you need to make is adding the 16 bit segment registers to the bottom of the new task's stack. Have you already got multitasking?
Cheers,
Adam
Re: problem entering again to proteectd mode..
no.. i dont load a new gdt..
Re: problem entering again to proteectd mode..
i set protected mode bit to 0 and disable th a20 gate..
i go to real mode..
what should i do to come back to protected mode..
i go to real mode..
what should i do to come back to protected mode..
Re: problem entering again to proteectd mode..
You really should read the forum rules. You display a complete lack of any understanding of the subject. First, acquire knowledge, then, come back.asdfgh wrote:i set protected mode bit to 0 and disable th a20 gate..
i go to real mode.. what should i do to come back to protected mode..
JAL
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Re: problem entering again to proteectd mode..
No. I'm not giving up time to give you code that you most likely won't understand at all just because you said please. Google, read the wiki, RTFM.and how to swithc to virtual mode.. code please.