note that this header is still bogus and needs a lot of work and factoring into arch-dependent parts...