OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 7:30 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Grub2: How to obtain screen resolution?
PostPosted: Sun Nov 11, 2018 11:51 am 
Offline

Joined: Wed Nov 07, 2018 10:15 am
Posts: 23
I need to properly handle newlinie character in my text console module and don't know how. I tried to read information from multiboot structure passed by bootloader, but it won't works. Do I have set some flag in my kernel multiboot header? Can you put here correct bootloader header with request for surch information as an example? My bootloader is Grub2.

That's my multiboot header:
Code:
mboot:
dd 0x1BADB002 ; Signature
dd 0 ; Flags
dd -(0x1BADB002+0) ;Control sum
dd mboot


Top
 Profile  
 
 Post subject: Re: Grub2: How to obtain screen resolution?
PostPosted: Mon Nov 12, 2018 3:00 am 
Offline
Member
Member

Joined: Wed Sep 19, 2012 3:43 am
Posts: 91
Location: The Netherlands
You should set the correct flags in your multiboot header so GRUB will pass the video mode information.
See https://www.gnu.org/software/grub/manual/multiboot/html_node/Header-magic-fields.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group