φ(・・*)ゞ ウーン
さて今日は気力が尽きたのでfpuexit()とか実装するのはちょっと諦めましたよ(´;ω;`)ブワッ
まあ、fpu使わない限りは大丈夫ですよね~というところです。一応fpuexit()以外はとりあえずDragonFlyに持ってきましたけど。
ちなみにfpuexit()はこんな感じのさっぱりとした実装に仕上がってますorz
+#include <assert.h> + +void +fpuexit(struct thread *td) +{ + assert(0 == 1); +} +
本来の実装はカレントスレッドが、fpuを使ったスレッドなのか比較して一致したらほげほげする訳ですが、
この比較部分をDragonFlyでどうやるかというのを考えながら必要な変数を探してたら気力が尽きたんですね\(^o^)/
というわけでこれはそのうちやるということで、今というか次は違うエラーを直そうっと。
-------------------------------------------------------------- >>> Kernel build for BHYVE started on Thu Jul 12 22:31:43 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.c -Werror /usr/src/sys/platform/pc64/vmm/vmm.c: In function 'vm_map_mmio': /usr/src/sys/platform/pc64/vmm/vmm.c:288: error: 'VM_MEMATTR_UNCACHEABLE' undeclared (first use in this function) /usr/src/sys/platform/pc64/vmm/vmm.c:288: error: (Each undeclared identifier is reported only once /usr/src/sys/platform/pc64/vmm/vmm.c:288: error: for each function it appears in.) /usr/src/sys/platform/pc64/vmm/vmm.c: In function 'vm_unmap_mmio': /usr/src/sys/platform/pc64/vmm/vmm.c:297: error: 'VM_MEMATTR_UNCACHEABLE' undeclared (first use in this function) /usr/src/sys/platform/pc64/vmm/vmm.c: In function 'vm_malloc': /usr/src/sys/platform/pc64/vmm/vmm.c:323: error: 'VM_MEMATTR_WRITE_BACK' undeclared (first use in this function) cc1: warnings being treated as errors /usr/src/sys/platform/pc64/vmm/vmm.c: In function 'vm_set_pinning': /usr/src/sys/platform/pc64/vmm/vmm.c:482: error: implicit declaration of function 'thread_lock' /usr/src/sys/platform/pc64/vmm/vmm.c:482: error: nested extern declaration of 'thread_lock' /usr/src/sys/platform/pc64/vmm/vmm.c:483: error: implicit declaration of function 'sched_unbind' /usr/src/sys/platform/pc64/vmm/vmm.c:483: error: nested extern declaration of 'sched_unbind' /usr/src/sys/platform/pc64/vmm/vmm.c:484: error: implicit declaration of function 'thread_unlock' /usr/src/sys/platform/pc64/vmm/vmm.c:484: error: nested extern declaration of 'thread_unlock' /usr/src/sys/platform/pc64/vmm/vmm.c:488: error: implicit declaration of function 'CPU_ABSENT' /usr/src/sys/platform/pc64/vmm/vmm.c:488: error: nested extern declaration of 'CPU_ABSENT' /usr/src/sys/platform/pc64/vmm/vmm.c:496: error: implicit declaration of function 'sched_bind' /usr/src/sys/platform/pc64/vmm/vmm.c:496: error: nested extern declaration of 'sched_bind' /usr/src/sys/platform/pc64/vmm/vmm.c: In function 'restore_guest_fpustate': /usr/src/sys/platform/pc64/vmm/vmm.c:508: error: implicit declaration of function 'fpuexit' /usr/src/sys/platform/pc64/vmm/vmm.c:508: error: nested extern declaration of 'fpuexit' /usr/src/sys/platform/pc64/vmm/vmm.c:509: error: implicit declaration of function 'stop_emulating' /usr/src/sys/platform/pc64/vmm/vmm.c:509: error: nested extern declaration of 'stop_emulating' /usr/src/sys/platform/pc64/vmm/vmm.c:510: error: implicit declaration of function 'fpurestore' /usr/src/sys/platform/pc64/vmm/vmm.c:510: error: nested extern declaration of 'fpurestore' /usr/src/sys/platform/pc64/vmm/vmm.c: In function 'save_guest_fpustate': /usr/src/sys/platform/pc64/vmm/vmm.c:517: error: implicit declaration of function 'fpusave' /usr/src/sys/platform/pc64/vmm/vmm.c:517: error: nested extern declaration of 'fpusave' /usr/src/sys/platform/pc64/vmm/vmm.c:518: error: implicit declaration of function 'start_emulating' /usr/src/sys/platform/pc64/vmm/vmm.c:518: error: nested extern declaration of 'start_emulating' /usr/src/sys/platform/pc64/vmm/vmm.c: In function 'vm_run': /usr/src/sys/platform/pc64/vmm/vmm.c:541: error: implicit declaration of function 'set_pcb_flags' /usr/src/sys/platform/pc64/vmm/vmm.c:541: error: nested extern declaration of 'set_pcb_flags' /usr/src/sys/platform/pc64/vmm/vmm.c:541: error: 'PCB_FULL_IRET' undeclared (first use in this function) /usr/src/sys/platform/pc64/vmm/vmm.c:543: error: 'curcpu' undeclared (first use in this function) *** 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.