phunix/minix/lib/libsys/arch/i386/sys_readbios.c
Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

16 lines
408 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.m_lsys_krn_readbios.size = size;
m.m_lsys_krn_readbios.addr = address;
m.m_lsys_krn_readbios.buf = buf;
return(_kernel_call(SYS_READBIOS, &m));
}