diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-10 17:50:06 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-10 17:50:06 +0000 |
commit | 2d0ede468ddd363243fd31580e3e86c39b51f7be (patch) | |
tree | 1796526cba0e86cc31f9df6550c728e594f00332 /sys/src/9/imx8/mmu.c | |
parent | 9911557e45d5763320eb612aa6c5965f8ff39007 (diff) |
imx8: cleanup framebuffer code
We can get rid of a bunch of stuff now that we'r using a softscreen.
Get rid of the static Memimage and Memdata for the framebuffer;
just allocate gscreen as a memimage from the image pool.
Avoid exporting fbraw pointer, just have screeninit() return it.
Remove fbmemalloc() function. it used to create a write-thru
mapping but given that we are no more reading the framebuffer,
we can use ucalloc() instead.
Diffstat (limited to 'sys/src/9/imx8/mmu.c')
-rw-r--r-- | sys/src/9/imx8/mmu.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/src/9/imx8/mmu.c b/sys/src/9/imx8/mmu.c index 031514018..56e840fcf 100644 --- a/sys/src/9/imx8/mmu.c +++ b/sys/src/9/imx8/mmu.c @@ -517,9 +517,3 @@ ucalloc(usize size) { return ucramalloc(size, 8, PTEUNCACHED); } - -void* -fbmemalloc(usize size) -{ - return ucramalloc(PGROUND(size), BY2PG, PTEWT); -} |