Enhanced support for syscall error checking from BIOs