Page 1 of 1

what address to load code/stack at for v86 mode

Posted: Fri Sep 16, 2005 11:44 am
by proxy
ok i have successful implemented v86 mode but was wondering what the recomended area for code and stack are for the v86 code. I realize it is entirely up to me, but was just wondering if anyone has a preference and why.

i am also trying to think of a clever way to have my v86 code return structures into the normal kernel code...I obviously can't pass a pointer, so i am guessing i will just have to copy it from the page i mapped manually after the task terminates.

proxy

Re:what address to load code/stack at for v86 mode

Posted: Sun Sep 18, 2005 4:33 am
by Pype.Clicker
well, you can indeed put it wherever you want. For instance, you can have a memory allocator for the 'DOS' memory region and ask it to allocate the proper size for code and stack.

Even a simple "watermark" allocator may be enough.