2005-07-14 17:13:33 +02:00
|
|
|
#include "syslib.h"
|
|
|
|
|
|
|
|
PUBLIC int sys_memset(char c, phys_bytes base, phys_bytes bytes)
|
|
|
|
{
|
|
|
|
/* Zero a block of data. */
|
|
|
|
message mess;
|
|
|
|
|
|
|
|
if (bytes == 0L) return(OK);
|
|
|
|
|
|
|
|
mess.MEM_PTR = (char *) base;
|
|
|
|
mess.MEM_COUNT = bytes;
|
2005-07-21 20:37:19 +02:00
|
|
|
mess.MEM_PATTERN = c;
|
2005-07-14 17:13:33 +02:00
|
|
|
|
|
|
|
return(_taskcall(SYSTASK, SYS_MEMSET, &mess));
|
|
|
|
}
|
|
|
|
|