In article <CAG0OUxjzxoPtTdgFwO+9esJmgJd3ZtJ30CwEu-LmVz=+f2y...@mail.gmail.com>, Chavdar Ivanov <[email protected]> wrote: >So, again, rebuilding VirtualBox 6.0.8 additions under 8.99.42 I get: >.............. >gcc -c -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused >-Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter >-Wlogical-op -Wno-vari >adic-macros -Wpointer-arith -Winline -Wno-pointer-sign >-fdiagnostics-show-option -Wstrict-prototypes -Wmissing-prototypes >-Wstrict-prototypes -Wimplicit-f >unction-declaration -Werror-implicit-function-declaration -O2 >-ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 >-fno-stack-protector -O2 > -mtune=generic -fno-omit-frame-pointer -nostdinc -std=c99 >-msoft-float -include >/p/VirtualBox-6.0.8/include/VBox/VBoxGuestMangling.h -m64 --param >inline- >unit-growth=100 --param large-function-growth=1000 >-fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-sse >-mno-mmx -mno-avx -fno-asynchronous-unwi >nd-tables -mno-fp-ret-in-387 -I/p/VirtualBox-6.0.8/src/VBox/Runtime >-I/p/VirtualBox-6.0.8/src/VBox/Runtime/include -I/usr/src/sys >-I/usr/src/common/includ >e -I/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include >-I/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/RuntimeGuestR0/dtrace >-I/p/VirtualB >ox-6.0.8/include -I/p/VirtualBox-6.0.8/out/netbsd.amd64/release -DVBOX >-DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE >-DRT_OS_NETBSD -DRT >_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DIN_RING0 -DIN_RT_R0 >-DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -D_KERNEL -D_MODULE -DIN_GUEST >-DIN_GUEST_R0 -DIN_R >T_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS -DRT_NO_EXPORT_SYMBOL >-DNOFILEID >-Wp,-MD,/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/RuntimeGuestR0/r >0drv/netbsd/assert-r0drv-netbsd.o.dep >-Wp,-MT,/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/RuntimeGuestR0/r0drv/netbsd/assert-r0drv-netbsd.o >-Wp,-MP - >o >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/RuntimeGuestR0/r0drv/netbsd/assert-r0drv-netbsd.o >/p/VirtualBox-6.0.8/src/VBox/Runtime/r0drv/netbsd/ass >ert-r0drv-netbsd.c >In file included from >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/machine/cpufunc.h:3:0, > from >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/x86/lock.h:68, > from >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/machine/lock.h:3, > from /usr/src/sys/sys/lock.h:74, > from >/p/VirtualBox-6.0.8/src/VBox/Runtime/r0drv/netbsd/the-netbsd-kernel.h:77, > from >/p/VirtualBox-6.0.8/src/VBox/Runtime/r0drv/netbsd/alloc-r0drv-netbsd.c:58: >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/x86/cpufunc.h: >In function 'x86_pause': >In file included from >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/machine/cpufunc.h:3:0, > from >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/x86/lock.h:68, > from >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/machine/lock.h:3, > from /usr/src/sys/sys/lock.h:74, > from >/p/VirtualBox-6.0.8/src/VBox/Runtime/r0drv/netbsd/the-netbsd-kernel.h:77, > from >/p/VirtualBox-6.0.8/src/VBox/Runtime/r0drv/netbsd/RTLogWriteStdOut-r0drv-netbsd.c:31: >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/x86/cpufunc.h: >In function 'x86_pause': >/p/VirtualBox-6.0.8/out/netbsd.amd64/release/obj/netbsd/include/x86/cpufunc.h:53:2: >error: 'asm' undeclared (first use in this function) > asm volatile ("pause"); > ^~~
I changed it to use __asm christos
