creating a do_int86

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

creating a do_int86

Post by digo_rp »

guys I´m trying to create a do_int86 under my os pmode 32bits written with djgpp and nasm

how my do_int86 works, I schedule a v86 task then after finished the
v86 monitor takes that v86 task off

this function to use with bankswitching using vesa mode

takes a long time
cuz my timer is 10ms to each task
is there another way to create a int86 or my do_int86 ?
using iret or something ?

could anyone give me some examples, please
pcmattman
Member
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:

Post by pcmattman »

I don't know the code behind one, but I'd assume that it just loads all the registers with the values within the 'regs' structure you pass _int86 then just do an 'int 0xwhatever' to call it.

The reason it might take a long time is because you schedule the task... that could mean that it doesn't get any time to execute for a while.
Post Reply