Skip to content

How to give a user space program direct access to the frame buffer? #1389

Discussion options

You must be logged in to vote

I did some research and it looks like the frame buffer could have phys frames all to itself, but is not guaranteed to. I only tested it on qemu (with BIOS and UEFI) and in both the frame buffer was aligned to 4096 bytes and was a multiple of 4096 bytes so the frame buffer can be mapped to user accessible pages to share it with user space. I did not test it on any other computer though (but I will test it on robo360 running coreboot).

If the frame buffer is not aligned to 4096 bytes and not a multiple of 4096 bytes, then the only secure way is for the kernel to copy memory from user accessible memory to the frame buffer.

Update: I tested it on the Jinlon Chromebook running MrChromebox firm…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tsatke
Comment options

@ChocolateLoverRaj
Comment options

@tsatke
Comment options

Answer selected by ChocolateLoverRaj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants