minix/lib/libsys/arch/i386/sys_readbios.c
Thomas Veerman 264c20159d Split libsys in arch dependent parts
The ARM part is not finished yet and will be fixed in a later commit.
2013-01-25 17:07:01 +00:00

15 lines
360 B
C

#include "syslib.h"
int sys_readbios(address, buf, size)
phys_bytes address; /* Absolute memory address */
void *buf; /* Buffer to store the results */
size_t size; /* Amount of data to read */
{
/* Read data from BIOS locations */
message m;
m.RDB_SIZE = size;
m.RDB_ADDR = address;
m.RDB_BUF = buf;
return(_kernel_call(SYS_READBIOS, &m));
}