diff options
author | Alfredo Dal'Ava Junior <alfredo@FreeBSD.org> | 2021-02-19 23:50:50 +0000 |
---|---|---|
committer | Alfredo Dal'Ava Junior <alfredo@FreeBSD.org> | 2021-02-19 23:55:54 +0000 |
commit | a78bb831a17f9ba4b3d833ae6a9c2ce4f5cb5d1e (patch) | |
tree | 64da2325dc3de591ff3a537da9043ab7f219b491 | |
parent | 2ccf971ace0bf23a9b27ec886a7f013c47661052 (diff) | |
download | src-a78bb831a17f.tar.gz src-a78bb831a17f.zip |
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
-rw-r--r-- | sys/sys/fbio.h | 4 |
1 files 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; |