Long Mode, Documentation and more Questions

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.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Long Mode, Documentation and more Questions

Post 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
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: Long Mode, Documentation and more Questions

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