2005-07-14 17:13:33 +02:00
|
|
|
#include "syslib.h"
|
|
|
|
|
2005-07-29 17:01:59 +02:00
|
|
|
PUBLIC int sys_memset(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;
|
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
|
|
|
}
|
|
|
|
|