OSDev.org

The Place to Start for Operating System Developers
It is currently Sat May 04, 2024 7:11 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: what is your multiboot grb2 framebuffer_addr??
PostPosted: Fri Mar 20, 2020 6:16 pm 
Offline

Joined: Wed Jul 24, 2019 6:26 am
Posts: 8
my framebuffer_addr is 0xfd000000, to my surprise, my qemu only has 2Gb memory. How does it visited this strange address??


Top
 Profile  
 
 Post subject: Re: what is your multiboot grb2 framebuffer_addr??
PostPosted: Fri Mar 20, 2020 7:09 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4597
Location: Chichester, UK
Your graphics card (or emulated card) also contains RAM.


Top
 Profile  
 
 Post subject: Re: what is your multiboot grb2 framebuffer_addr??
PostPosted: Fri Mar 20, 2020 9:36 pm 
Offline

Joined: Wed Jul 24, 2019 6:26 am
Posts: 8
iansjack wrote:
Your graphics card (or emulated card) also contains RAM.

many thanks,by the way how can i get the memory map of the graphic card??


Top
 Profile  
 
 Post subject: Re: what is your multiboot grb2 framebuffer_addr??
PostPosted: Sat Mar 21, 2020 4:45 am 
Offline
Member
Member
User avatar

Joined: Thu Oct 13, 2016 4:55 pm
Posts: 1584
wellwell wrote:
many thanks,by the way how can i get the memory map of the graphic card??
You can't. You might use a card specific register to map different regions of GPU RAM, so that you can access them using the memory bus. There are usually some sort of get-frame-buffer-address function which does that (GPU->CPU) and you can define buffer objects (CPU->GPU).

In short, when you set the resolution and query the framebuffer, then the GPU will allocate its own RAM, and map that at 0xfd0000000. That address looks like normal RAM, but it's not, it's MMIO which happens to be implemented by RAM too.

Cheers,
bzt


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Amazonbot [bot], Google [Bot], SemrushBot [Bot], vladimir and 91 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