Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Build fix: vtophys takes vaddr_t, not a ptr
details: https://anonhg.NetBSD.org/src/rev/e3c67d606b41
branches: trunk
changeset: 1022543:e3c67d606b41
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jul 24 20:45:45 2021 +0000
description:
Build fix: vtophys takes vaddr_t, not a ptr
diffstat:
sys/arch/x86/x86/bios32.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r a59aec52a579 -r e3c67d606b41 sys/arch/x86/x86/bios32.c
--- a/sys/arch/x86/x86/bios32.c Sat Jul 24 19:14:35 2021 +0000
+++ b/sys/arch/x86/x86/bios32.c Sat Jul 24 20:45:45 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bios32.c,v 1.6 2021/07/24 11:39:19 jmcneill Exp $ */
+/* $NetBSD: bios32.c,v 1.7 2021/07/24 20:45:45 jmcneill Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bios32.c,v 1.6 2021/07/24 11:39:19 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bios32.c,v 1.7 2021/07/24 20:45:45 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -252,7 +252,7 @@
if (eva == 0)
return;
- smbios_entry.hdrphys = vtophys(p);
+ smbios_entry.hdrphys = vtophys((vaddr_t)p);
smbios_entry.tabphys = sh->addr;
smbios_entry.addr = (uint8_t *)(eva + (sh->addr & PGOFSET));
smbios_entry.len = sh->size;
@@ -287,7 +287,7 @@
if (eva == 0)
return;
- smbios_entry.hdrphys = vtophys(p);
+ smbios_entry.hdrphys = vtophys((vaddr_t)p);
smbios_entry.tabphys = sh->addr;
smbios_entry.addr = (uint8_t *)(eva + ((vaddr_t)sh->addr & PGOFSET));
smbios_entry.len = sh->size;
Home |
Main Index |
Thread Index |
Old Index