1 /* The kernel call implemented in this file:
4 * The parameters for this kernel call are:
5 * m2_p1: MEM_PTR (virtual address)
6 * m2_l1: MEM_COUNT (returns physical address)
7 * m2_l2: MEM_PATTERN (pattern byte to be written)
10 #include "kernel/system.h"
14 /*===========================================================================*
16 *===========================================================================*/
17 int do_memset(struct proc
* caller
, message
* m_ptr
)
19 /* Handle sys_memset(). This writes a pattern into the specified memory. */
20 vm_memset(caller
, m_ptr
->MEM_PROCESS
, (phys_bytes
) m_ptr
->MEM_PTR
,
21 m_ptr
->MEM_PATTERN
, (phys_bytes
) m_ptr
->MEM_COUNT
);
25 #endif /* USE_MEMSET */