2005-10-14 10:58:59 +02:00
|
|
|
/* The kernel call implemented in this file:
|
2005-07-14 17:12:12 +02:00
|
|
|
* m_type: SYS_MEMSET
|
|
|
|
*
|
2005-10-14 10:58:59 +02:00
|
|
|
* The parameters for this kernel call are:
|
2014-05-20 13:18:39 +02:00
|
|
|
* 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)
|
2005-07-14 17:12:12 +02:00
|
|
|
*/
|
|
|
|
|
2010-04-02 00:22:33 +02:00
|
|
|
#include "kernel/system.h"
|
2005-07-14 17:12:12 +02:00
|
|
|
|
|
|
|
#if USE_MEMSET
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* do_memset *
|
|
|
|
*===========================================================================*/
|
2012-03-25 20:25:53 +02:00
|
|
|
int do_memset(struct proc * caller, message * m_ptr)
|
2005-07-14 17:12:12 +02:00
|
|
|
{
|
2005-07-21 20:36:40 +02:00
|
|
|
/* Handle sys_memset(). This writes a pattern into the specified memory. */
|
2014-05-20 13:18:39 +02:00
|
|
|
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);
|
2005-07-14 17:12:12 +02:00
|
|
|
return(OK);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* USE_MEMSET */
|
|
|
|
|