While researching issue #1189, I have discovered that these headers do not really come from the FreeBSD source tree, and instead seem to have been based on the x86_64 version of these and adapted accordingly (see https://github.com/cloudius-systems/osv/issues/1189#issuecomment-1102605587). One of the headers had a bug which I fixed but it would be nice to revisit all other headers and compare them with current FreeBSD sources and back-port what necessary.
Here is a list of non-empty headers that need to be checked:
_align.h
atomic.h // This is where we had a bug but maybe there other issues
endian.h
in_cksum.h
in_cksum.cc
intr_machdep.h
param.h
While researching issue #1189, I have discovered that these headers do not really come from the FreeBSD source tree, and instead seem to have been based on the x86_64 version of these and adapted accordingly (see https://github.com/cloudius-systems/osv/issues/1189#issuecomment-1102605587). One of the headers had a bug which I fixed but it would be nice to revisit all other headers and compare them with current FreeBSD sources and back-port what necessary.
Here is a list of non-empty headers that need to be checked:
I am skipping the xen subfolder with 3 headers.