φ(^∇^ ) メモナノラ FreeBSDのcritical_enter()とcritical_exit()はDragonFlyだとcrit_enter()でcrit_exit()の置き換えでOKだったのでコミットだん。
done:
ふと/usr/src/sys/kernでcriticalとかgrepすれば良いじゃんと思ってやってみたら上手いことそれらしいのが見つかったって感じなんですがw
基本的にだらだらやってるのでなかなか進んではないけど、地味に進んでいる感じですね。
todo:
つぎに出てるコンパイルエラーはmalloc/freeがないってやつだけどこれは簡単にクリアできるでしょう、きっと。
——————————————————————————————— »> Kernel build for BHYVE started on Sun Jul 1 20:56:34 JST 2012 ——————————————————————————————— ===> BHYVE cd /usr/src/sys/config; PATH=/usr/obj/usr/src/ctools_x86_64_x86_64/usr/sbin:/us r/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/ob j/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 OB JFORMAT_PATH=/usr/obj/usr/src/ctools_x86_64_x86_64 HOST_CCVER=gcc44 CCVER=gcc4 4 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_x 86_64/usr/sbin:/usr/obj/usr/src/btools_x86_64/usr/bin:/usr/obj/usr/src/btools_x8 6_64/bin:/usr/obj/usr/src/btools_x86_64/usr/games:/usr/pkg/bin make KERNEL=kerne l all cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -W missing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wold-style-definition -std=c99 -Wold-style-declaration -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/us r/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 -fin line-limit=8000 —param inline-unit-growth=100 —param large-function-growth=100 0 -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 -m no-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/intel/ept. c -Werror cc1: warnings being treated as errors /usr/src/sys/platform/pc64/vmm/intel/ept.c: In function ‘ept_create_mapping’: /usr/src/sys/platform/pc64/vmm/intel/ept.c:168: error: implicit declaration of f unction ‘malloc’ /usr/src/sys/platform/pc64/vmm/intel/ept.c:168: error: nested extern declaration of ‘malloc’ /usr/src/sys/platform/pc64/vmm/intel/ept.c:168: error: initialization makes poin ter from integer without a cast /usr/src/sys/platform/pc64/vmm/intel/ept.c: In function ‘ept_free_pd_entry’: /usr/src/sys/platform/pc64/vmm/intel/ept.c:231: error: implicit declaration of f unction ‘free’ /usr/src/sys/platform/pc64/vmm/intel/ept.c:231: error: nested extern declaration of ‘free’ /usr/src/sys/platform/pc64/vmm/intel/ept.c: In function ‘ept_invalidate_mappings ‘: /usr/src/sys/platform/pc64/vmm/intel/ept.c:309: error: ‘PAT_WRITE_BACK’ undeclar ed (first use in this function) /usr/src/sys/platform/pc64/vmm/intel/ept.c:309: error: (Each undeclared identifi er is reported only once /usr/src/sys/platform/pc64/vmm/intel/ept.c:309: error: for each function it appe ars in.) /usr/src/sys/platform/pc64/vmm/intel/ept.c:311: error: implicit declaration of f unction ‘smp_rendezvous’ /usr/src/sys/platform/pc64/vmm/intel/ept.c:311: error: nested extern declaration of ‘smp_rendezvous’ *** 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.