1 |
/* |
/* |
2 |
Copyright (C) 1994, 1996 Free Software Foundation, Inc. |
Copyright (C) 1994,96,2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
5 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
34 |
{ |
{ |
35 |
default_pager_object_create (diskfs_default_pager, &cred->shared_object, |
default_pager_object_create (diskfs_default_pager, &cred->shared_object, |
36 |
__vm_page_size); |
__vm_page_size); |
37 |
vm_map (mach_task_self (), (u_int *)&cred->mapped, vm_page_size, 0, 1, |
vm_map (mach_task_self (), (vm_address_t *)&cred->mapped, vm_page_size, |
38 |
cred->shared_object, 0, 0, |
0, 1, cred->shared_object, 0, 0, |
39 |
VM_PROT_READ|VM_PROT_WRITE, VM_PROT_READ|VM_PROT_WRITE, 0); |
VM_PROT_READ|VM_PROT_WRITE, VM_PROT_READ|VM_PROT_WRITE, 0); |
40 |
cred->mapped->shared_page_magic = SHARED_PAGE_MAGIC; |
cred->mapped->shared_page_magic = SHARED_PAGE_MAGIC; |
41 |
cred->mapped->conch_status = USER_HAS_NOT_CONCH; |
cred->mapped->conch_status = USER_HAS_NOT_CONCH; |