[Prev][Next][Index][Thread]

can flux oskit help me do vesa stuff?




i've been trying to write a miniminikernel to do some basic graphics using
vesa to set it up. i had written a multiboot kernel in C that can
write to the video at 0xB8000. that worked, and i can make boot
floppies of that hello world kernel. now i wanted to do something more
complicated so i looked at lots of vbe code and vga code. for example,
if i want to get the basic vesa bios extension info, (without grub's
help), i would have to:

asm:
     mov %ax, 0x4F00
     ; put the pointer to the structure in es:di
     int 10h ; here is the problem
     ; put the ax into one of my C variables


the problem is that i think i need to be in real mode or v86 mode to
do this, and i don't think gcc will let me output that kind of code
anyways. I'm pretty sure grub leaves me in protected mode when it runs
the kernel so i was wondering if this flux oskit has a small library
that would let me call this interrupt manually like int86x() does in
<dos.h> that i see everywhere. and i'd rather not have to write
the whole thing in asm.


so i looked through the 500 page documentation and i found this: 

15.10 (X86) Base Environment: Protected-mode entry and exit


but it's an empty page!

can anyone tell me what i need to do or where to go for help?