1*433d6423SLionel Sambuc #include "syslib.h" 2*433d6423SLionel Sambuc sys_memset(endpoint_t who,unsigned long pattern,phys_bytes base,phys_bytes bytes)3*433d6423SLionel Sambucint sys_memset(endpoint_t who, unsigned long pattern, 4*433d6423SLionel Sambuc phys_bytes base, phys_bytes bytes) 5*433d6423SLionel Sambuc { 6*433d6423SLionel Sambuc /* Zero a block of data. */ 7*433d6423SLionel Sambuc message mess; 8*433d6423SLionel Sambuc 9*433d6423SLionel Sambuc if (bytes == 0L) return(OK); 10*433d6423SLionel Sambuc 11*433d6423SLionel Sambuc mess.m_lsys_krn_sys_memset.base = base; 12*433d6423SLionel Sambuc mess.m_lsys_krn_sys_memset.count = bytes; 13*433d6423SLionel Sambuc mess.m_lsys_krn_sys_memset.pattern = pattern; 14*433d6423SLionel Sambuc mess.m_lsys_krn_sys_memset.process = who; 15*433d6423SLionel Sambuc 16*433d6423SLionel Sambuc return(_kernel_call(SYS_MEMSET, &mess)); 17*433d6423SLionel Sambuc } 18*433d6423SLionel Sambuc 19