2006-07-10 14:17:16 +02:00
|
|
|
#include "syslib.h"
|
|
|
|
|
2012-03-25 20:25:53 +02:00
|
|
|
int sys_readbios(address, buf, size)
|
2006-07-10 14:17:16 +02:00
|
|
|
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;
|
|
|
|
|
2014-07-25 15:54:54 +02:00
|
|
|
m.m_lsys_krn_readbios.size = size;
|
|
|
|
m.m_lsys_krn_readbios.addr = address;
|
|
|
|
m.m_lsys_krn_readbios.buf = buf;
|
2010-02-09 16:20:09 +01:00
|
|
|
return(_kernel_call(SYS_READBIOS, &m));
|
2006-07-10 14:17:16 +02:00
|
|
|
}
|