svn commit: r260023 - head/lib/libkvm
Marcel Moolenaar
marcel at FreeBSD.org
Sat Dec 28 23:02:49 UTC 2013
Author: marcel
Date: Sat Dec 28 23:02:48 2013
New Revision: 260023
URL: http://svnweb.freebsd.org/changeset/base/260023
Log:
Allow building a cross libkvm for ia64.
Modified:
head/lib/libkvm/kvm_ia64.c
Modified: head/lib/libkvm/kvm_ia64.c
==============================================================================
--- head/lib/libkvm/kvm_ia64.c Sat Dec 28 23:01:57 2013 (r260022)
+++ head/lib/libkvm/kvm_ia64.c Sat Dec 28 23:02:48 2013 (r260023)
@@ -32,9 +32,15 @@
#include <sys/elf64.h>
#include <sys/mman.h>
+#ifndef CROSS_LIBKVM
#include <machine/atomic.h>
#include <machine/bootinfo.h>
#include <machine/pte.h>
+#else
+#include "../../sys/ia64/include/atomic.h"
+#include "../../sys/ia64/include/bootinfo.h"
+#include "../../sys/ia64/include/pte.h"
+#endif
#include <kvm.h>
#include <limits.h>
@@ -163,7 +169,11 @@ _kvm_initvtop(kvm_t *kd)
return (-1);
}
+#ifndef CROSS_LIBKVM
kd->vmst->pagesize = getpagesize();
+#else
+ kd->vmst->pagesize = 8192;
+#endif
if (_kvm_maphdrs(kd, sizeof(Elf64_Ehdr)) == -1)
return (-1);
More information about the svn-src-head
mailing list