Is entering VBE modes is real without interrupts or VM86?
- abcdef4bfd
- Member

- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Is entering VBE modes is real without interrupts or VM86?
I need them, but i don't have the VM8086, because i need GPF handler, but i don't did it today. I'm planning to add it, but today is i'm going wrong and i really need to VM8086 or entering VBE modes is real without interrupts or VM86?
- BrightLight
- Member

- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: Is entering VBE modes is real without interrupts or VM86
To enter high resolution modes, you'll need VBE. Of course, it is possible to write graphics cards drivers, but I don't think you have time to write a driver for every card you wish to support.
An easy solution (if your kernel is loaded below 1 MB) is to switch back to real mode and do the mode switching and return to protected mode. If you use GRUB, you can tell it to set a VBE mode for you. If your kernel is above 1 MB and you don't want GRUB to set a mode, your only solution is to use v8086. Set up a small v8086 stub in low memory that will call the BIOS for you.
An easy solution (if your kernel is loaded below 1 MB) is to switch back to real mode and do the mode switching and return to protected mode. If you use GRUB, you can tell it to set a VBE mode for you. If your kernel is above 1 MB and you don't want GRUB to set a mode, your only solution is to use v8086. Set up a small v8086 stub in low memory that will call the BIOS for you.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
-
glauxosdever
- Member

- Posts: 501
- Joined: Wed Jun 17, 2015 9:40 am
- Libera.chat IRC: glauxosdever
- Location: Athens, Greece
Re: Is entering VBE modes is real without interrupts or VM86
Hi,
If you want to use VBE modes, either use INT 0x10 while in real mode, either tell GRUB to do it. I'm not familiar with other easy ways. The next way would be to use virtual 8086 mode, but you don't want that either.
The ideal would be to write your own video drivers for each card you plan to support, as they can be used directly from protected mode, but that's really hard. Probably not for you yet.
Regards,
glauxosdever
Your grammar and syntax don't seem to be understandable by everyone. I did my best to decode your question and I'll try to answer it.catnikita255 wrote:I need them, but i don't have the VM8086, because i need GPF handler, but i don't did it today. I'm planning to add it, but today is i'm going wrong and i really need to VM8086 or entering VBE modes is real without interrupts or VM86?
If you want to use VBE modes, either use INT 0x10 while in real mode, either tell GRUB to do it. I'm not familiar with other easy ways. The next way would be to use virtual 8086 mode, but you don't want that either.
The ideal would be to write your own video drivers for each card you plan to support, as they can be used directly from protected mode, but that's really hard. Probably not for you yet.
Regards,
glauxosdever
- abcdef4bfd
- Member

- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: Is entering VBE modes is real without interrupts or VM86
Thank you very much. How to tell GRUB to set VBE mode? Is modules is needed, or changes in the grub.cfg?omarrx024 wrote:To enter high resolution modes, you'll need VBE. Of course, it is possible to write graphics cards drivers, but I don't think you have time to write a driver for every card you wish to support.
An easy solution (if your kernel is loaded below 1 MB) is to switch back to real mode and do the mode switching and return to protected mode. If you use GRUB, you can tell it to set a VBE mode for you. If your kernel is above 1 MB and you don't want GRUB to set a mode, your only solution is to use v8086. Set up a small v8086 stub in low memory that will call the BIOS for you.
-
glauxosdever
- Member

- Posts: 501
- Joined: Wed Jun 17, 2015 9:40 am
- Libera.chat IRC: glauxosdever
- Location: Athens, Greece
Re: Is entering VBE modes is real without interrupts or VM86
Hi,
Edit: I now saw that between omarrx024's post and yours, there was an interval somewhat greater than I thought. But still, you didn't search previously.
Regards,
glauxosdever
If you answered this quickly, it means you didn't do any searching. I already found the answer (I didn't know it).catnikita255 wrote:Thank you very much. How to tell GRUB to set VBE mode? Is modules is needed, or changes in the grub.cfg?omarrx024 wrote:To enter high resolution modes, you'll need VBE. Of course, it is possible to write graphics cards drivers, but I don't think you have time to write a driver for every card you wish to support.
An easy solution (if your kernel is loaded below 1 MB) is to switch back to real mode and do the mode switching and return to protected mode. If you use GRUB, you can tell it to set a VBE mode for you. If your kernel is above 1 MB and you don't want GRUB to set a mode, your only solution is to use v8086. Set up a small v8086 stub in low memory that will call the BIOS for you.
Edit: I now saw that between omarrx024's post and yours, there was an interval somewhat greater than I thought. But still, you didn't search previously.
Regards,
glauxosdever
Last edited by glauxosdever on Tue Sep 22, 2015 10:06 am, edited 1 time in total.
- abcdef4bfd
- Member

- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: Is entering VBE modes is real without interrupts or VM86
Ok, i'll enter Google now.glauxosdever wrote:Hi,
If you answered this quickly, it means you didn't do any searching. I already found the answer (I didn't know it).catnikita255 wrote:Thank you very much. How to tell GRUB to set VBE mode? Is modules is needed, or changes in the grub.cfg?omarrx024 wrote:To enter high resolution modes, you'll need VBE. Of course, it is possible to write graphics cards drivers, but I don't think you have time to write a driver for every card you wish to support.
An easy solution (if your kernel is loaded below 1 MB) is to switch back to real mode and do the mode switching and return to protected mode. If you use GRUB, you can tell it to set a VBE mode for you. If your kernel is above 1 MB and you don't want GRUB to set a mode, your only solution is to use v8086. Set up a small v8086 stub in low memory that will call the BIOS for you.
Regards,
glauxosdever
-
Octocontrabass
- Member

- Posts: 6298
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Is entering VBE modes is real without interrupts or VM86
There is another option that no one seems to have mentioned yet: use an emulator to run int 0x10.
- abcdef4bfd
- Member

- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: Is entering VBE modes is real without interrupts or VM86
I'm searched Google, found some answers, but they are all for Linux. So i'm asking here.
-
glauxosdever
- Member

- Posts: 501
- Joined: Wed Jun 17, 2015 9:40 am
- Libera.chat IRC: glauxosdever
- Location: Athens, Greece
Re: Is entering VBE modes is real without interrupts or VM86
Hi,
Regards,
glauxosdever
Doesn't this emulator need vitrual 8086 mode? So it's basically the same, only a bit harder.Octocontrabass wrote:There is another option that no one seems to have mentioned yet: use an emulator to run int 0x10.
GRUB is the same for all systems.catnikita255 wrote:I'm searched Google, found some answers, but they are all for Linux. So i'm asking here.
Regards,
glauxosdever
- abcdef4bfd
- Member

- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: Is entering VBE modes is real without interrupts or VM86
I know that GRUB is the same for all systems, but why nor GRUB_GFXMODE, nor vbemode is not working?glauxosdever wrote:Hi,
Doesn't this emulator mentioning need vitrual 8086 mode? So it's basically the same, only a bit harder.Octocontrabass wrote:There is another option that no one seems to have mentioned yet: use an emulator to run int 0x10.![]()
GRUB is the same for all systems.catnikita255 wrote:I'm searched Google, found some answers, but they are all for Linux. So i'm asking here.
Regards,
glauxosdever
-
glauxosdever
- Member

- Posts: 501
- Joined: Wed Jun 17, 2015 9:40 am
- Libera.chat IRC: glauxosdever
- Location: Athens, Greece
Re: Is entering VBE modes is real without interrupts or VM86
Hi,
Regards,
glauxosdever
Have you actually tried?catnikita255 wrote:but why nor GRUB_GFXMODE, nor vbemode is not working?
Regards,
glauxosdever
- abcdef4bfd
- Member

- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: Is entering VBE modes is real without interrupts or VM86
Yes. I'm written it in grub.cfg after multiboot "boot/os365.bin".glauxosdever wrote:Hi,
Have you actually tried?catnikita255 wrote:but why nor GRUB_GFXMODE, nor vbemode is not working?
Regards,
glauxosdever
-
glauxosdever
- Member

- Posts: 501
- Joined: Wed Jun 17, 2015 9:40 am
- Libera.chat IRC: glauxosdever
- Location: Athens, Greece
Re: Is entering VBE modes is real without interrupts or VM86
Hi,
Note: In Bochs you will need to install Bochs VESA extensions, as the bare emulator emulates only a VGA card.
Regards,
glauxosdever
You wrote it in grub.cfg after multiboot "boot/os365.bin". Please rephrase it. Have you tested it?catnikita255 wrote:Yes. I'm written it in grub.cfg after multiboot "boot/os365.bin".
Note: In Bochs you will need to install Bochs VESA extensions, as the bare emulator emulates only a VGA card.
Regards,
glauxosdever
- abcdef4bfd
- Member

- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: Is entering VBE modes is real without interrupts or VM86
I'm tested it on QEMU.glauxosdever wrote:Hi,
You wrote it in grub.cfg after multiboot "boot/os365.bin". Please rephrase it. Have you tested it?catnikita255 wrote:Yes. I'm written it in grub.cfg after multiboot "boot/os365.bin".
Note: In Bochs you will need to install Bochs VESA extensions, as the bare emulator emulates only a VGA card.
Regards,
glauxosdever
-
Octocontrabass
- Member

- Posts: 6298
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Is entering VBE modes is real without interrupts or VM86
No, there is no need for any particular CPU features (and it could even run on a non-x86 platform, though that probably wouldn't work). 64-bit Windows uses an emulator to set the video mode when there's no graphics driver available.glauxosdever wrote:Doesn't this emulator need vitrual 8086 mode? So it's basically the same, only a bit harder.