Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIOS booting: Consider framebuffer config of kernel ELF #281

Open
phil-opp opened this issue Nov 13, 2022 · 2 comments
Open

BIOS booting: Consider framebuffer config of kernel ELF #281

phil-opp opened this issue Nov 13, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@phil-opp
Copy link
Member

Right now the BIOS implementation does not consider the framebuffer configuration of the kernel. Instead, it just defaults to a hardcoded resolution.

To fix this, we would need to parse the kernel ELF file already in the real mode stages, which could be challenging because of the memory limits in real mode. Alternatively, we could copy the framebuffer settings to a small text file and place this file alongside the kernel executable on the FAT partition.

@Freax13
Copy link
Member

Freax13 commented Nov 28, 2022

We could load the file in long mode, extract the frame buffer configuration, drop down to real mode, do the VBE calls, and switch back to long mode.

@phil-opp
Copy link
Member Author

Good idea! I never tried going back to real mode from long mode though, so I'm not sure if it will work.

@phil-opp phil-opp added the enhancement New feature or request label Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants