Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen Cast physical address to uintptr_t, fix PAE...



details:   https://anonhg.NetBSD.org/src/rev/ae91eedb2802
branches:  trunk
changeset: 1009914:ae91eedb2802
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu May 07 15:44:35 2020 +0000

description:
Cast physical address to uintptr_t, fix PAE build.
Pointed out by John D. Baker

diffstat:

 sys/arch/xen/xen/hypervisor.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b6f6c82ba21c -r ae91eedb2802 sys/arch/xen/xen/hypervisor.c
--- a/sys/arch/xen/xen/hypervisor.c     Thu May 07 13:40:20 2020 +0000
+++ b/sys/arch/xen/xen/hypervisor.c     Thu May 07 15:44:35 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hypervisor.c,v 1.81 2020/05/05 17:02:01 bouyer Exp $ */
+/* $NetBSD: hypervisor.c,v 1.82 2020/05/07 15:44:35 bouyer Exp $ */
 
 /*
  * Copyright (c) 2005 Manuel Bouyer.
@@ -53,7 +53,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.81 2020/05/05 17:02:01 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.82 2020/05/07 15:44:35 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -244,7 +244,7 @@
        xen_init_hypercall_page();
        hvm_start_info = (void *)((uintptr_t)hvm_start_paddr + KERNBASE);
 
-       HYPERVISOR_shared_info = (void *)(HYPERVISOR_shared_info_pa + KERNBASE);
+       HYPERVISOR_shared_info = (void *)((uintptr_t)HYPERVISOR_shared_info_pa + KERNBASE);
        struct xen_add_to_physmap xmap = {
                .domid = DOMID_SELF,
                .space = XENMAPSPACE_shared_info,



Home | Main Index | Thread Index | Old Index