2005-07-14 17:13:33 +02:00
|
|
|
#include "syslib.h"
|
|
|
|
|
2012-06-06 19:05:28 +02:00
|
|
|
int sys_memset(endpoint_t who, unsigned long pattern,
|
|
|
|
phys_bytes base, phys_bytes bytes)
|
2005-07-14 17:13:33 +02:00
|
|
|
{
|
|
|
|
/* Zero a block of data. */
|
|
|
|
message mess;
|
|
|
|
|
|
|
|
if (bytes == 0L) return(OK);
|
|
|
|
|
2014-05-20 13:18:39 +02:00
|
|
|
mess.m_lsys_krn_sys_memset.base = base;
|
|
|
|
mess.m_lsys_krn_sys_memset.count = bytes;
|
|
|
|
mess.m_lsys_krn_sys_memset.pattern = pattern;
|
|
|
|
mess.m_lsys_krn_sys_memset.process = who;
|
2005-07-14 17:13:33 +02:00
|
|
|
|
2010-02-09 16:20:09 +01:00
|
|
|
return(_kernel_call(SYS_MEMSET, &mess));
|
2005-07-14 17:13:33 +02:00
|
|
|
}
|
|
|
|
|