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
There was a problem returning from long mode to real mode
There was a problem returning from long mode to real mode
Last edited by ccya on Thu Jul 27, 2023 5:58 pm, edited 2 times in total.
-
- Member
- Posts: 5760
- Joined: Mon Mar 25, 2013 7:01 pm
Re: There was a problem returning from long mode to real mod
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
Re: There was a problem returning from long mode to real mode
Returning to real mode is not the problem. The problem is that there might be no real mode BIOS that you can use.