what address to load code/stack at for v86 mode

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
proxy

what address to load code/stack at for v86 mode

Post 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
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

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

Post 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.
Post Reply