git: a78bb831a17f - main - fbio: Use appropriate types for the physical and virtual framebuffer address
Alfredo Dal'Ava Junior
alfredo at FreeBSD.org
Fri Feb 19 20:56:11 UTC 2021
The branch main has been updated by alfredo:
URL: https://cgit.FreeBSD.org/src/commit/?id=a78bb831a17f9ba4b3d833ae6a9c2ce4f5cb5d1e
commit a78bb831a17f9ba4b3d833ae6a9c2ce4f5cb5d1e
Author: Alfredo Dal'Ava Junior <alfredo at FreeBSD.org>
AuthorDate: 2021-02-19 23:50:50 +0000
Commit: Alfredo Dal'Ava Junior <alfredo at FreeBSD.org>
CommitDate: 2021-02-19 23:55:54 +0000
fbio: Use appropriate types for the physical and virtual framebuffer address
Use appropriate types for the physical and virtual framebuffer address.
Fixes framebuffers mapped above 4G physical on 32-bit systems that
support physical address extensions like i386 and Book-E powerpc.
Patch developed by bdragon
Reviewed by: bdragon, luporl
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D28604
---
sys/sys/fbio.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index 4cc0cc6debba..3b47b11345cf 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -136,8 +136,8 @@ struct fb_info {
fb_leave_t *leave;
fb_setblankmode_t *setblankmode;
- uintptr_t fb_pbase; /* For FB mmap. */
- uintptr_t fb_vbase; /* if NULL, use fb_write/fb_read. */
+ vm_paddr_t fb_pbase; /* For FB mmap. */
+ vm_offset_t fb_vbase; /* if NULL, use fb_write/fb_read. */
void *fb_priv; /* First argument for read/write. */
const char *fb_name;
uint32_t fb_flags;
More information about the dev-commits-src-all
mailing list