linear frame buffer address

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
szhou42
Member
Member
Posts: 67
Joined: Thu Apr 28, 2016 12:40 pm
Contact:

linear frame buffer address

Post by szhou42 »

Hi, I am currently writing a simple vesa driver.

What's the typical address of a linear frame buffer?

I got LFB equal to 0xfc000000, and the call to vesa get mode function does return a 0x004f in AX register, which means the call succeed.

but is it typical for LFB to be such a high address? The qemu can only simulate a maximum of 2047 mb of memory, there is no way i can access a physical address 0xfc000000

Thanks!
User avatar
Sik
Member
Member
Posts: 251
Joined: Wed Aug 17, 2016 4:55 am

Re: linear frame buffer address

Post by Sik »

The framebuffer is in video RAM, not normal RAM, so of course it will be located in a different address.
szhou42
Member
Member
Posts: 67
Joined: Thu Apr 28, 2016 12:40 pm
Contact:

Re: linear frame buffer address

Post by szhou42 »

Sik wrote:The framebuffer is in video RAM, not normal RAM, so of course it will be located in a different address.
OHOHOH you remind me, those physical memory are mapped to video memory, thanks!
shmx
Member
Member
Posts: 68
Joined: Sat Jan 16, 2016 10:43 am

Re: linear frame buffer address

Post by shmx »

there is no way i can access a physical address 0xfc000000
And you try to :) x86 CPU can address up to 4 GB of physical memory (in 32-bit mode, no PAE, PSE). physical memory != RAM. Physical memory includes RAM, ROM, MMIO, VRAM etc.
Post Reply