diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-09-22 22:08:52 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-09-22 22:08:52 +0000 |
commit | 7ae99f80b6661760c5de3edd330b279f04b092a2 (patch) | |
tree | 533dff9d5801d8e7cb6c552f39761067180853b7 /sys/dev/fb | |
parent | 02fac928ab687607786801cdf33f100c70cc6a2e (diff) | |
download | src-7ae99f80b6661760c5de3edd330b279f04b092a2.tar.gz src-7ae99f80b6661760c5de3edd330b279f04b092a2.zip |
pmap_unmapdev/bios: Accept a pointer instead of a vm_offset_t.
This matches the return type of pmap_mapdev/bios.
Reviewed by: kib, markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D36548
Diffstat (limited to 'sys/dev/fb')
-rw-r--r-- | sys/dev/fb/vesa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c index f1d75873f983..0e19884e86b5 100644 --- a/sys/dev/fb/vesa.c +++ b/sys/dev/fb/vesa.c @@ -1305,7 +1305,8 @@ vesa_set_mode(video_adapter_t *adp, int mode) } int10_set_mode(adp->va_initial_bios_mode); if (adp->va_info.vi_flags & V_INFO_LINEAR) - pmap_unmapdev(adp->va_buffer, vesa_vmem_max); + pmap_unmapdev((void *)adp->va_buffer, + vesa_vmem_max); /* * Once (*prevvidsw->get_info)() succeeded, * (*prevvidsw->set_mode)() below won't fail... @@ -1350,7 +1351,7 @@ vesa_set_mode(video_adapter_t *adp, int mode) adp->va_flags |= V_ADP_DAC8; if (adp->va_info.vi_flags & V_INFO_LINEAR) - pmap_unmapdev(adp->va_buffer, vesa_vmem_max); + pmap_unmapdev((void *)adp->va_buffer, vesa_vmem_max); #if VESA_DEBUG > 0 printf("VESA: mode set!\n"); |