问题
I want to create a small operating system, but in 32-bit mode with graphics with the full resolution of my screen (1366x768) and 24 bpp. For now, my code in nasm assembly calls the 0x4F02 VESA function in real mode with the value of 0xC118 (the second bit from left is 1 to create a linear frame buffer). After, I enter in 32-bit protected mode and I can only access the first 64Kb of the screen in 0xA0000, so the linear frame buffer hasn't been created. And I can't switch bank because it is in protected mode. I have searched in many sites, but I have not found any way to create a linear frame buffer that works.
来源:https://stackoverflow.com/questions/37576407/how-to-make-a-vesa-linear-frame-buffer-in-real-mode-to-use-it-after-in-protected