Example Vesa code in pure c
Example Vesa code in pure c
i am starter in os development.and i write kernel in c with many asm.But i dont like asm.How i can write vesa driver in c.I search all of this forum.but i dont answer.i wait your hel :-[
Re:Example Vesa code in pure c
You can't write a VESA driver in pure C unless you use the Protected Mode Interface, which isn't always fully supported.
I may be wrong, but that's what I know.
And please write correctly.
I may be wrong, but that's what I know.
And please write correctly.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Example Vesa code in pure c
the main problem is that VESA interface is defined in terms of registers passing, so with most C compilers, you'll have no choice but using inline assembly to call the interrupt, etc.
I suggest you check the implementation of V86/VESA from OSLib: that's where i took inspiration & code from.
I suggest you check the implementation of V86/VESA from OSLib: that's where i took inspiration & code from.