kernel: handle pagefaults in vm_memset()

This commit is contained in:
Arne Welzel
2012-09-22 19:58:05 +00:00
committed by Ben Gras
parent e61268c454
commit 0617743bd1
3 changed files with 70 additions and 42 deletions

View File

@@ -17,9 +17,8 @@
int do_memset(struct proc * caller, message * m_ptr)
{
/* Handle sys_memset(). This writes a pattern into the specified memory. */
unsigned char c = m_ptr->MEM_PATTERN;
vm_memset(m_ptr->MEM_PROCESS, (phys_bytes) m_ptr->MEM_PTR,
c, (phys_bytes) m_ptr->MEM_COUNT);
vm_memset(caller, m_ptr->MEM_PROCESS, (phys_bytes) m_ptr->MEM_PTR,
m_ptr->MEM_PATTERN, (phys_bytes) m_ptr->MEM_COUNT);
return(OK);
}