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);
|
|
|
|
|
|
|
|
mess.MEM_PTR = (char *) base;
|
|
|
|
mess.MEM_COUNT = bytes;
|
2005-07-29 17:01:59 +02:00
|
|
|
mess.MEM_PATTERN = pattern;
|
2012-06-06 19:05:28 +02:00
|
|
|
mess.MEM_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
|
|
|
}
|
|
|
|
|