diff --git a/boot.lua b/boot.lua index fd46a9d..05842ff 100644 --- a/boot.lua +++ b/boot.lua @@ -34,6 +34,16 @@ else bootfs = data end +--polyfill {get,set}BootAddress like normal bios does +--they should exist! +--normal lua bios says it provides {get,set}BootAddress for "backwards compatibility", but there's no replacement +function computer.getBootAddress() + return ci(eeprom, 'getData') +end +function computer.setBootAddress(addr) + return ci(eeprom, 'setData', addr) +end + local fd, err = ci(bootfs, 'open', '/init.lua') if not fd then bail('open %s/init.lua failed: %s', bootfs:sub(1, 8), err) end local code = ''