Per conversation on IRC, here's a patch that moves everything of importance from sys/io.h to bits/io.h. bits/io.h is based on klibc sys/io.h, in this case. Isaac Dunham