minix/kernel/system/do_memset.c
Lionel Sambuc 3ed35f3958 Message type for SYS_MEMSET
Change-Id: Icebd04e0c53d9653301550bb598df8719aa66ada
2014-07-28 17:05:46 +02:00

28 lines
877 B
C

/* The kernel call implemented in this file:
* m_type: SYS_MEMSET
*
* The parameters for this kernel call are:
* m_lsys_krn_sys_memset.base (virtual address)
* m_lsys_krn_sys_memset.count (returns physical address)
* m_lsys_krn_sys_memset.pattern (pattern byte to be written)
*/
#include "kernel/system.h"
#if USE_MEMSET
/*===========================================================================*
* do_memset *
*===========================================================================*/
int do_memset(struct proc * caller, message * m_ptr)
{
/* Handle sys_memset(). This writes a pattern into the specified memory. */
vm_memset(caller, m_ptr->m_lsys_krn_sys_memset.process,
m_ptr->m_lsys_krn_sys_memset.base,
m_ptr->m_lsys_krn_sys_memset.pattern,
m_ptr->m_lsys_krn_sys_memset.count);
return(OK);
}
#endif /* USE_MEMSET */