diff --git a/include/netbsd/hax_types_netbsd.h b/include/netbsd/hax_types_netbsd.h index 8b807001..ba83d013 100644 --- a/include/netbsd/hax_types_netbsd.h +++ b/include/netbsd/hax_types_netbsd.h @@ -35,6 +35,8 @@ #include #include +#include "hax_list.h" + // Signed Types typedef int8_t int8; typedef int16_t int16; @@ -59,7 +61,6 @@ typedef uint64_t mword; #endif typedef mword HAX_VADDR_T; -#include "../hax_list.h" struct hax_page { void *kva; struct vm_page *page; diff --git a/platforms/netbsd/Makefile b/platforms/netbsd/Makefile index 2045bed9..5ef5a81f 100644 --- a/platforms/netbsd/Makefile +++ b/platforms/netbsd/Makefile @@ -2,6 +2,9 @@ S?= /usr/src/sys KMOD= haxm +CFLAGS+= -Wno-error=address-of-packed-member +CPPFLAGS+= -I../../include -I../../core/include + # toplevel SRCS+= components.c SRCS+= hax_entry.c diff --git a/platforms/netbsd/components.c b/platforms/netbsd/components.c index 99316f0a..e67a12b6 100644 --- a/platforms/netbsd/components.c +++ b/platforms/netbsd/components.c @@ -34,8 +34,8 @@ #include #include -#include "../../core/include/hax_core_interface.h" -#include "../../core/include/config.h" +#include "config.h" +#include "interface.h" extern struct cfdriver hax_vm_cd; extern struct cfdriver hax_vcpu_cd; diff --git a/platforms/netbsd/hax_entry.c b/platforms/netbsd/hax_entry.c index 846ddf4c..02f17c24 100644 --- a/platforms/netbsd/hax_entry.c +++ b/platforms/netbsd/hax_entry.c @@ -35,10 +35,8 @@ #include #include -#include "../../core/include/config.h" -#include "../../core/include/hax_core_interface.h" -#include "../../include/hax.h" -#include "../../include/hax_interface.h" +#include "config.h" +#include "interface.h" #define HAX_DEVICE_NAME "HAX" #define HAX_VM_DEVICE_NAME "hax_vm" diff --git a/platforms/netbsd/hax_entry_hax.c b/platforms/netbsd/hax_entry_hax.c index 0367116d..227e7900 100644 --- a/platforms/netbsd/hax_entry_hax.c +++ b/platforms/netbsd/hax_entry_hax.c @@ -38,11 +38,10 @@ #include #include -#include "../../include/hax.h" -#include "../../include/hax_interface.h" -#include "../../include/hax_release_ver.h" -#include "../../core/include/hax_core_interface.h" -#include "../../core/include/config.h" +#include "hax_release_ver.h" + +#include "config.h" +#include "interface.h" dev_type_open(hax_open); dev_type_close(hax_close); diff --git a/platforms/netbsd/hax_entry_vcpu.c b/platforms/netbsd/hax_entry_vcpu.c index 59add487..0d540054 100644 --- a/platforms/netbsd/hax_entry_vcpu.c +++ b/platforms/netbsd/hax_entry_vcpu.c @@ -35,7 +35,7 @@ #include #include -#include "../../core/include/hax_core_interface.h" +#include "interface.h" extern struct cfdriver hax_vcpu_cd; diff --git a/platforms/netbsd/hax_entry_vm.c b/platforms/netbsd/hax_entry_vm.c index 9931ee64..8bf3e083 100644 --- a/platforms/netbsd/hax_entry_vm.c +++ b/platforms/netbsd/hax_entry_vm.c @@ -35,7 +35,7 @@ #include #include -#include "../../core/include/hax_core_interface.h" +#include "interface.h" extern struct cfdriver hax_vm_cd; diff --git a/platforms/netbsd/hax_event.c b/platforms/netbsd/hax_event.c index 885c771c..3a0398c3 100644 --- a/platforms/netbsd/hax_event.c +++ b/platforms/netbsd/hax_event.c @@ -28,7 +28,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include "../../include/hax.h" +#include "hax.h" int hax_notify_host_event(enum hax_notify_event event, uint32_t *param, uint32_t size) diff --git a/platforms/netbsd/hax_host_mem.c b/platforms/netbsd/hax_host_mem.c index fae8060a..0a619a7f 100644 --- a/platforms/netbsd/hax_host_mem.c +++ b/platforms/netbsd/hax_host_mem.c @@ -36,8 +36,9 @@ #include #include -#include "../../include/hax_host_mem.h" -#include "../../core/include/paging.h" +#include "hax_host_mem.h" + +#include "paging.h" int hax_pin_user_pages(uint64_t start_uva, uint64_t size, hax_memdesc_user *memdesc) { diff --git a/platforms/netbsd/hax_mem_alloc.c b/platforms/netbsd/hax_mem_alloc.c index 1c587ced..9ff7a616 100644 --- a/platforms/netbsd/hax_mem_alloc.c +++ b/platforms/netbsd/hax_mem_alloc.c @@ -33,7 +33,7 @@ #include #include -#include "../../include/hax.h" +#include "hax.h" void * hax_vmalloc(uint32_t size, uint32_t flags) { diff --git a/platforms/netbsd/hax_mm.c b/platforms/netbsd/hax_mm.c index 0b32b48d..730bf199 100644 --- a/platforms/netbsd/hax_mm.c +++ b/platforms/netbsd/hax_mm.c @@ -33,7 +33,7 @@ #include #include -#include "../../include/hax.h" +#include "hax.h" struct hax_vcpu_mem_hinfo_t { struct uvm_object *uao; diff --git a/platforms/netbsd/hax_wrapper.c b/platforms/netbsd/hax_wrapper.c index 78fcc6cc..b1ddf3a4 100644 --- a/platforms/netbsd/hax_wrapper.c +++ b/platforms/netbsd/hax_wrapper.c @@ -39,10 +39,8 @@ #include #include - -#include "../../include/hax.h" -#include "../../core/include/hax_core_interface.h" -#include "../../core/include/ia32.h" +#include "ia32.h" +#include "interface.h" static const char* kLogPrefix[] = { "haxm: ",