Changeset View
Changeset View
Standalone View
Standalone View
lib/libkvm/kvm_aarch64.c
Show All 33 Lines | |||||
#include <limits.h> | #include <limits.h> | ||||
#include <kvm.h> | #include <kvm.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include "kvm_private.h" | #include "kvm_private.h" | ||||
void | static int | ||||
_kvm_freevtop(kvm_t *kd) | _aarch64_probe(kvm_t *kd) | ||||
{ | { | ||||
printf("_kvm_freevtop\n"); | return (_kvm_probe_elf_kernel(kd, ELFCLASS64, EM_AARCH64)); | ||||
abort(); | |||||
} | } | ||||
int | static int | ||||
_kvm_initvtop(kvm_t *kd) | _aarch64_initvtop(kvm_t *kd) | ||||
{ | { | ||||
printf("_kvm_initvtop\n"); | _kvm_err(kd, kd->program, "vmcores not supported for aarch64 yet"); | ||||
abort(); | return (-1); | ||||
} | } | ||||
int | static int | ||||
_kvm_kvatop(kvm_t *kd, u_long va, off_t *pa) | _aarch64_native(kvm_t *kd) | ||||
{ | { | ||||
printf("_kvm_kvatop\n"); | #ifdef __aarch64__ | ||||
abort(); | return (1); | ||||
#else | |||||
return (0); | |||||
#endif | |||||
} | } | ||||
struct kvm_arch kvm_aarch64 = { | |||||
.ka_probe = _aarch64_probe, | |||||
.ka_initvtop = _aarch64_initvtop, | |||||
.ka_native = _aarch64_native, | |||||
}; | |||||
KVM_ARCH(kvm_aarch64); |