x86: Import code from coreboot's libpayload to parse the coreboot table