DF-4240 / build.log
# /root/rig # make (successful build of dfdpt_rig.ko, verbatim) Warning: Object directory not changed from original /root/rig cc -O2 -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wold-style-definition -Wmissing-include-dirs -Wno-pointer-sign -Winit-self -Wundef -Wno-unused-but-set-variable -std=gnu11 -Werror -DKLD_MODULE -nostdinc -I. -Idragonfly -I/usr/obj/usr/src/sys/X86_64_GENERIC -I/usr/obj/usr/src/sys/X86_64_GENERIC/include -Idragonfly/../include -I/usr/include -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/X86_64_GENERIC/opt_global.h -Wold-style-declaration -fno-common -ffreestanding -fno-stack-protector -fno-strict-aliasing -fno-strict-overflow -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -mno-fp-ret-in-387 -mindirect-branch=thunk-inline -c dfdpt_rig.c cc -Wl,--build-id=sha1 -nostdlib -Wl,--hash-style=sysv -r -Wl,-d -o dfdpt_rig.ko dfdpt_rig.o # /root/rig # cc -O2 -Wall -o dfdpt_ctl dfdpt_ctl.c # /root/rig # kldload ./dfdpt_rig.ko # /root/rig # ./dfdpt_ctl prime [prime] kern.dfdpt_a_dptaction = 0xffffffff80438010 [prime] kern.dfdpt_a_dptpoll = 0xffffffff80439bb0 [prime] kern.dfdpt_a_dptallocccbs = 0xffffffff804375e0 # /root/rig # ./dfdpt_ctl magic [magic] kern.dfdpt_m_dptaction = 0x0 <- zero until rig_setup; verified post-setup # prologue byte-verify (host side, from /boot/kernel/kernel): # dpt_action file_off=1671184 bytes=be f4 98 00 00 48 89 df # dpt_poll file_off=1678256 bytes=00 48 63 03 31 f6 48 89 # dptallocccbs file_off=1668576 bytes=98 a6 00 00 48 89 df 0d