There was a problem returning from long mode to real 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.
There was a problem returning from long mode to real mode
I'm not currently writing any drivers in 64-bit long mode, so I'm going to use the BIOS as a driver, but I'm experiencing a triple glitch and return address error when returning 16-bit real mode from 64-bit long mode
Code I referencedviewtopic.php?f=1&t=23125
》I am from China and use translators to communicate
Code I referencedviewtopic.php?f=1&t=23125
》I am from China and use translators to communicate
Last edited by ccya on Thu Jul 27, 2023 5:58 pm, edited 2 times in total.
- Octocontrabass
- Member
Member - Posts: 5968
- Joined: Mon Mar 25, 2013 7:01 pm
Re: There was a problem returning from long mode to real mod
Post by Octocontrabass »
This does not work with UEFI.ccya wrote:I'm going to use the BIOS as a driver
Where? Which exception? Are you using a virtual machine?ccya wrote:I'm experiencing a triple glitch and return address error when returning 16-bit real mode from 64-bit long mode
Re: There was a problem returning from long mode to real mode
refer to the ReactOS code to solve this problem,return to real mode from long mode
https://github.com/reactos/reactos/blob ... 64/entry.S
https://github.com/reactos/reactos/blob ... 64/entry.S
- wishedtobe
- Member
Member - Posts: 60
- Joined: Sat May 04, 2024 7:48 am
- Libera.chat IRC: wishedtobe
Re: There was a problem returning from long mode to real mode
Post by wishedtobe »
唯一需要回到bios操作的东西可能是vesa,这个在v8086模式下完全可以进行
Re: There was a problem returning from long mode to real mode
"Might be"? Either the system was booted using BIOS, meaning there is a BIOS, or it wasn't, in which case there isn't. There is no guessing involved.
Re: There was a problem returning from long mode to real mode
"Might be" expresses a possibility, not a guess.