Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2016 10:59:21 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r307904 - head/sys/amd64/vmm/amd
Message-ID:  <201610251059.u9PAxLet029220@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Oct 25 10:59:21 2016
New Revision: 307904
URL: https://svnweb.freebsd.org/changeset/base/307904

Log:
  fix up r307903, use correct max address definition
  
  MFC after:	1 week
  X-MFC with:	r307903

Modified:
  head/sys/amd64/vmm/amd/svm.c

Modified: head/sys/amd64/vmm/amd/svm.c
==============================================================================
--- head/sys/amd64/vmm/amd/svm.c	Tue Oct 25 10:34:14 2016	(r307903)
+++ head/sys/amd64/vmm/amd/svm.c	Tue Oct 25 10:59:21 2016	(r307904)
@@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
 #include <machine/vmm.h>
 #include <machine/vmm_dev.h>
 #include <machine/vmm_instruction_emul.h>
+#include <machine/vmparam.h>
 
 #include "vmm_lapic.h"
 #include "vmm_stat.h"
@@ -518,7 +519,7 @@ svm_vminit(struct vm *vm, pmap_t pmap)
 	int i;
 
 	svm_sc = contigmalloc(sizeof (*svm_sc), M_SVM, M_WAITOK | M_ZERO,
-	    0, BUS_SPACE_MAXADDR, PAGE_SIZE, 0);
+	    0, VM_MAX_ADDRESS, PAGE_SIZE, 0);
 	svm_sc->vm = vm;
 	svm_sc->nptp = (vm_offset_t)vtophys(pmap->pm_pml4);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610251059.u9PAxLet029220>