diff options
author | marcel <marcel@FreeBSD.org> | 2013-12-28 23:02:48 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2013-12-28 23:02:48 +0000 |
commit | e023c91c02e5a5eb264839012f5f20da96cecacc (patch) | |
tree | b9e7ef84219a6ec36f467d30c77027d518c50076 /lib | |
parent | 99153b89d808ab07a4ab7afef93204ba1320d68e (diff) | |
download | FreeBSD-src-e023c91c02e5a5eb264839012f5f20da96cecacc.zip FreeBSD-src-e023c91c02e5a5eb264839012f5f20da96cecacc.tar.gz |
Allow building a cross libkvm for ia64.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm/kvm_ia64.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libkvm/kvm_ia64.c b/lib/libkvm/kvm_ia64.c index f6df7cc..2977e9f 100644 --- a/lib/libkvm/kvm_ia64.c +++ b/lib/libkvm/kvm_ia64.c @@ -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); |