Imported from Etherboot 5.4 tree