Reorganized system call library; uses separate file per call now.
New configuration header file to include/ exclude functionality. Extracted privileged features from struct proc and create new struct priv. Renamed various system calls for readability.
This commit is contained in:
27
kernel/system/do_memset.c
Normal file
27
kernel/system/do_memset.c
Normal file
@@ -0,0 +1,27 @@
|
||||
/* The system call implemented in this file:
|
||||
* m_type: SYS_MEMSET
|
||||
*
|
||||
* The parameters for this system call are:
|
||||
* m5_l1: CP_SRC_ADDR (virtual address)
|
||||
* m5_l2: CP_DST_ADDR (returns physical address)
|
||||
* m5_l3: CP_NR_BYTES (size of datastructure)
|
||||
*/
|
||||
|
||||
#include "../system.h"
|
||||
|
||||
#if USE_MEMSET
|
||||
|
||||
/*===========================================================================*
|
||||
* do_memset *
|
||||
*===========================================================================*/
|
||||
PUBLIC int do_memset(m_ptr)
|
||||
register message *m_ptr;
|
||||
{
|
||||
/* Handle sys_memset(). */
|
||||
phys_zero((phys_bytes) m_ptr->MEM_PTR, (phys_bytes) m_ptr->MEM_COUNT);
|
||||
return(OK);
|
||||
}
|
||||
|
||||
#endif /* USE_MEMSET */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user