Hi,
If it's only once, do it at boot time before switching to long mode in the first place. If not (OP mentions BIOS functions in point 4), then the best (safest) option for multiple calls from long mode surely has to be emulation as a user mode task? Hopefully this is a short-term hack anyway, until the OP gets drivers to replace the need for BIOS calls.
The points that you still get memory protection and paging with v86 still stand.
Cheers,
Adam
Long Mode, Documentation and more Questions
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: Long Mode, Documentation and more Questions
If you emulate real mode within long mode, I'm guessing that you can leave other processors fully active while using the BIOS code. I don't know if the same applies to v86 or if there would be problems with the interrupts.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming