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
what address to load code/stack at for v86 mode
- Pype.Clicker
- 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
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.
Even a simple "watermark" allocator may be enough.