1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

- Add a prototype for the setfault() function.

- Remove some stray printf()s.
This commit is contained in:
Benno Rice 2002-05-09 14:11:17 +00:00
parent 8207b3627b
commit 8c2b091ea2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96251
2 changed files with 4 additions and 12 deletions

View File

@ -66,6 +66,8 @@ static const char rcsid[] =
#include <vm/pmap.h>
#include <vm/vm_map.h>
int setfault(faultbuf); /* defined in locore.S */
/*
* Makes sure that the right segment of userspace is mapped in.
*/
@ -91,9 +93,6 @@ copyout(const void *kaddr, void *udaddr, size_t len)
td = PCPU_GET(curthread);
pm = &td->td_proc->p_vmspace->vm_pmap;
printf("copyout: called with %p, %p, %d (td=%p)\n", kaddr, udaddr, len,
td);
if (setfault(env)) {
td->td_pcb->pcb_onfault = NULL;
return (EFAULT);
@ -135,9 +134,6 @@ copyin(const void *udaddr, void *kaddr, size_t len)
td = PCPU_GET(curthread);
pm = &td->td_proc->p_vmspace->vm_pmap;
printf("copyin: called with %p, %p, %d (td=%p)\n", udaddr, kaddr, len,
td);
if (setfault(env)) {
td->td_pcb->pcb_onfault = NULL;
return (EFAULT);

View File

@ -66,6 +66,8 @@ static const char rcsid[] =
#include <vm/pmap.h>
#include <vm/vm_map.h>
int setfault(faultbuf); /* defined in locore.S */
/*
* Makes sure that the right segment of userspace is mapped in.
*/
@ -91,9 +93,6 @@ copyout(const void *kaddr, void *udaddr, size_t len)
td = PCPU_GET(curthread);
pm = &td->td_proc->p_vmspace->vm_pmap;
printf("copyout: called with %p, %p, %d (td=%p)\n", kaddr, udaddr, len,
td);
if (setfault(env)) {
td->td_pcb->pcb_onfault = NULL;
return (EFAULT);
@ -135,9 +134,6 @@ copyin(const void *udaddr, void *kaddr, size_t len)
td = PCPU_GET(curthread);
pm = &td->td_proc->p_vmspace->vm_pmap;
printf("copyin: called with %p, %p, %d (td=%p)\n", udaddr, kaddr, len,
td);
if (setfault(env)) {
td->td_pcb->pcb_onfault = NULL;
return (EFAULT);