_ロ(‥ ) ケシケシ...
なんとなくvmm_support.S、vmm_util.c 、x86.cのコンパイルエラーも修正しましたー
簡単に直せるやつばっかりだったのは運が良かったですね!
あと、vmm_mem.cがコンパイルされてないよなーと思ったらfilesでtypoしてたので修正しました(;´∀`)
vmm_mem.cのコンパイルエラーはこれですが、そんなに大したことはなさそうかな。
-------------------------------------------------------------- >>> Kernel build for BHYVE started on Thu Jul 26 22:31:04 JST 2012 -------------------------------------------------------------- ===> BHYVE cd /usr/src/sys/config; PATH=/usr/obj/usr/src/ctools_x86_64_x86_64/usr/sbin:/usr/obj/usr/src/ctools_x86_64_x86_64/usr/bin:/usr/obj/usr/src/ctools_x86_64_x86_64/bin:/usr/obj/usr/src/ctools_x86_64_x86_64/usr/games:/usr/obj/usr/src/btools_x86_64/usr/sbin:/usr/obj/usr/src/btools_x86_64/usr/bin:/usr/obj/usr/src/btools_x86_64/bin:/usr/obj/usr/src/btools_x86_64/usr/games:/usr/pkg/bin config -d /usr/obj/usr/src/sys/BHYVE /usr/src/sys/config/BHYVE Kernel build directory is /usr/obj/usr/src/sys/BHYVE cd /usr/obj/usr/src/sys/BHYVE; MAKEOBJDIRPREFIX=/usr/obj/usr/src/world_x86_64 OBJTREE=/usr/obj MACHINE_ARCH=x86_64 MACHINE=x86_64 MACHINE_PLATFORM=pc64 OBJFORMAT_PATH=/usr/obj/usr/src/ctools_x86_64_x86_64 HOST_CCVER=gcc44 CCVER=gcc44 BINUTILSVER=binutils221 DESTDIR=/usr/obj/usr/src/world_x86_64 INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/ctools_x86_64_x86_64/usr/sbin:/usr/obj/usr/src/ctools_x86_64_x86_64/usr/bin:/usr/obj/usr/src/ctools_x86_64_x86_64/bin:/usr/obj/usr/src/ctools_x86_64_x86_64/usr/games:/usr/obj/usr/src/btools_x86_64/usr/sbin:/usr/obj/usr/src/btools_x86_64/usr/bin:/usr/obj/usr/src/btools_x86_64/bin:/usr/obj/usr/src/btools_x86_64/usr/games:/usr/pkg/bin make KERNEL=kernel all cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wold-style-definition -std=c99 -Wold-style-declaration -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/BHYVE -I"/usr/src/sys/dev/acpica5" -I"/usr/src/sys/contrib/dev/acpica-unix/include" -I/usr/src/sys/dev/netif/ath/hal -I/usr/src/sys/dev/netif/ath/hal/ath_hal -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -ffreestanding -mpreferred-stack-boundary=4 -fno-stack-protector -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-sse5 -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt -msoft-float -fno-asynchronous-unwind-tables -fno-omit-frame-pointer /usr/src/sys/platform/pc64/vmm/vmm_mem.c -Werror cc1: warnings being treated as errors /usr/src/sys/platform/pc64/vmm/vmm_mem.c: In function 'vmm_mem_steal_memory': /usr/src/sys/platform/pc64/vmm/vmm_mem.c:139: error: implicit declaration of function 'printf' /usr/src/sys/platform/pc64/vmm/vmm_mem.c:139: error: nested extern declaration of 'printf' /usr/src/sys/platform/pc64/vmm/vmm_mem.c: In function 'vmm_mem_direct_map': /usr/src/sys/platform/pc64/vmm/vmm_mem.c:180: error: invalid type argument of '->' (have 'struct pmap') /usr/src/sys/platform/pc64/vmm/vmm_mem.c:225: error: implicit declaration of function 'malloc' /usr/src/sys/platform/pc64/vmm/vmm_mem.c:225: error: nested extern declaration of 'malloc' /usr/src/sys/platform/pc64/vmm/vmm_mem.c:226: error: assignment makes pointer from integer without a cast /usr/src/sys/platform/pc64/vmm/vmm_mem.c: In function 'vmm_mem_init': /usr/src/sys/platform/pc64/vmm/vmm_mem.c:303: error: implicit declaration of function 'mtx_init' /usr/src/sys/platform/pc64/vmm/vmm_mem.c:303: error: nested extern declaration of 'mtx_init' /usr/src/sys/platform/pc64/vmm/vmm_mem.c:303: error: 'MTX_DEF' undeclared (first use in this function) /usr/src/sys/platform/pc64/vmm/vmm_mem.c:303: error: (Each undeclared identifier is reported only once /usr/src/sys/platform/pc64/vmm/vmm_mem.c:303: error: for each function it appears in.) /usr/src/sys/platform/pc64/vmm/vmm_mem.c: In function 'vmm_mem_alloc': /usr/src/sys/platform/pc64/vmm/vmm_mem.c:325: error: implicit declaration of function 'mtx_lock' /usr/src/sys/platform/pc64/vmm/vmm_mem.c:325: error: nested extern declaration of 'mtx_lock' /usr/src/sys/platform/pc64/vmm/vmm_mem.c:342: error: implicit declaration of function 'mtx_unlock' /usr/src/sys/platform/pc64/vmm/vmm_mem.c:342: error: nested extern declaration of 'mtx_unlock' *** Error code 1 Stop in /usr/obj/usr/src/sys/BHYVE. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src.