Page 1 of 1

creating a do_int86

Posted: Fri Feb 23, 2007 5:46 am
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

Posted: Fri Feb 23, 2007 4:12 pm
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.