kernels/linux-2.4.0/arch/ia64/mm/init.c
/*
 * This performs some platform-dependent address space initialization.
 * On IA-64, we want to setup the VM area for the register backing
 * store (which grows upwards) and install the gateway page which is
 * used for signal trampolines, etc.
 */
This performs some platform-dependent address space initialization.
On IA-64, we want to setup the VM area for the register backing
store (which grows upwards) and install the gateway page which is
used for signal trampolines, etc.
This performs some platform - dependent address space initialization . On IA - 64 we want to setup the VM area for the register backing store ( which grows upwards ) and install the gateway page which is used for signal trampolines etc .
void
ia64_init_addr_space (void)
{
	struct vm_area_struct *vma;
	vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
	if (vma) {
		vma->vm_mm = current->mm;
		vma->vm_start = IA64_RBS_BOT;
		vma->vm_end = vma->vm_start + PAGE_SIZE;
		vma->vm_page_prot = PAGE_COPY;
		vma->vm_flags = VM_READ|VM_WRITE|VM_MAYREAD|VM_MAYWRITE|VM_GROWSUP;
		vma->vm_ops = NULL;
		vma->vm_pgoff = 0;
		vma->vm_file = NULL;
		vma->vm_private_data = NULL;
		insert_vm_struct(current->mm, vma);
	}
}
void ia64_init_addr_space ( void ) { struct vm_area_struct * vma ; vma = kmem_cache_alloc ( vm_area_cachep , SLAB_KERNEL ) ; if ( vma ) { vma -> vm_mm = current -> mm ; vma -> vm_start = IA64_RBS_BOT ; vma -> vm_end = vma -> vm_start + PAGE_SIZE ; vma -> vm_page_prot = PAGE_COPY ; vma -> vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_GROWSUP ; vma -> vm_ops = NULL ; vma -> vm_pgoff = 0 ; vma -> vm_file = NULL ; vma -> vm_private_data = NULL ; insert_vm_struct ( current -> mm , vma ) ; } }
This performs some platform-dependent address space initialization.
This performs some platform - dependent address space initialization .
/*
	 * If we're out of memory and kmem_cache_alloc() returns NULL,
	 * we simply ignore the problem.  When the process attempts to
	 * write to the register backing store for the first time, it
	 * will get a SEGFAULT in this case.
	 */