cloudius-systems / osv

OSv, a new operating system for the cloud.
osv.io
Other
4.12k stars 605 forks source link

aarch64: revisit and possibly update headers under bsd/aarch64/machine #1194

Open wkozaczuk opened 2 years ago

wkozaczuk commented 2 years ago

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

I am skipping the xen subfolder with 3 headers.