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 Fix compile failure on i386 with PAE.
details: https://anonhg.NetBSD.org/src/rev/4a044d979378
branches: trunk
changeset: 350897:4a044d979378
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu Jan 26 01:35:51 2017 +0000
description:
Fix compile failure on i386 with PAE.
diffstat:
sys/arch/x86/x86/efi.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 8b73190a8cdf -r 4a044d979378 sys/arch/x86/x86/efi.c
--- a/sys/arch/x86/x86/efi.c Thu Jan 26 01:32:34 2017 +0000
+++ b/sys/arch/x86/x86/efi.c Thu Jan 26 01:35:51 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efi.c,v 1.5 2017/01/24 11:09:14 nonaka Exp $ */
+/* $NetBSD: efi.c,v 1.6 2017/01/26 01:35:51 nonaka Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efi.c,v 1.5 2017/01/24 11:09:14 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efi.c,v 1.6 2017/01/26 01:35:51 nonaka Exp $");
#include <sys/kmem.h>
#include <sys/param.h>
#include <sys/systm.h>
@@ -151,7 +151,7 @@
if (efi_cfgtblhead_va != NULL)
return efi_cfgtblhead_va;
- pa = (paddr_t) efi_systbl_va->st_cfgtbl;
+ pa = (paddr_t)(u_long) efi_systbl_va->st_cfgtbl;
aprint_debug("efi: cfgtbl at pa %" PRIxPADDR "\n", pa);
va = efi_getva(pa);
aprint_debug("efi: cfgtbl mapped at va %" PRIxVADDR "\n", va);
@@ -210,7 +210,7 @@
count = efi_systbl_va->st_entries;
for (; count; count--, ct++)
if (efi_uuideq(&ct->ct_uuid, uuid))
- return (paddr_t) ct->ct_data;
+ return (paddr_t)(u_long) ct->ct_data;
return 0; /* Not found. */
}
Home |
Main Index |
Thread Index |
Old Index