x86: fix cmos read and write to not use inb_p and outb_p