Page 2 of 2

Re: Long Mode, Documentation and more Questions

Posted: Tue Jan 31, 2012 2:13 pm
by AJ
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

Re: Long Mode, Documentation and more Questions

Posted: Tue Jan 31, 2012 2:30 pm
by DavidCooper
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.