diff options
Diffstat (limited to 'arch/ia64/mm/init.c')
-rw-r--r-- | arch/ia64/mm/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index bdb14a369137..3b85c3ecac38 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c | |||
@@ -116,6 +116,7 @@ ia64_init_addr_space (void) | |||
116 | */ | 116 | */ |
117 | vma = vm_area_alloc(current->mm); | 117 | vma = vm_area_alloc(current->mm); |
118 | if (vma) { | 118 | if (vma) { |
119 | vma_set_anonymous(vma); | ||
119 | vma->vm_start = current->thread.rbs_bot & PAGE_MASK; | 120 | vma->vm_start = current->thread.rbs_bot & PAGE_MASK; |
120 | vma->vm_end = vma->vm_start + PAGE_SIZE; | 121 | vma->vm_end = vma->vm_start + PAGE_SIZE; |
121 | vma->vm_flags = VM_DATA_DEFAULT_FLAGS|VM_GROWSUP|VM_ACCOUNT; | 122 | vma->vm_flags = VM_DATA_DEFAULT_FLAGS|VM_GROWSUP|VM_ACCOUNT; |
@@ -133,6 +134,7 @@ ia64_init_addr_space (void) | |||
133 | if (!(current->personality & MMAP_PAGE_ZERO)) { | 134 | if (!(current->personality & MMAP_PAGE_ZERO)) { |
134 | vma = vm_area_alloc(current->mm); | 135 | vma = vm_area_alloc(current->mm); |
135 | if (vma) { | 136 | if (vma) { |
137 | vma_set_anonymous(vma); | ||
136 | vma->vm_end = PAGE_SIZE; | 138 | vma->vm_end = PAGE_SIZE; |
137 | vma->vm_page_prot = __pgprot(pgprot_val(PAGE_READONLY) | _PAGE_MA_NAT); | 139 | vma->vm_page_prot = __pgprot(pgprot_val(PAGE_READONLY) | _PAGE_MA_NAT); |
138 | vma->vm_flags = VM_READ | VM_MAYREAD | VM_IO | | 140 | vma->vm_flags = VM_READ | VM_MAYREAD | VM_IO | |
@@ -273,7 +275,7 @@ static struct vm_area_struct gate_vma; | |||
273 | 275 | ||
274 | static int __init gate_vma_init(void) | 276 | static int __init gate_vma_init(void) |
275 | { | 277 | { |
276 | gate_vma.vm_mm = NULL; | 278 | vma_init(&gate_vma, NULL); |
277 | gate_vma.vm_start = FIXADDR_USER_START; | 279 | gate_vma.vm_start = FIXADDR_USER_START; |
278 | gate_vma.vm_end = FIXADDR_USER_END; | 280 | gate_vma.vm_end = FIXADDR_USER_END; |
279 | gate_vma.vm_flags = VM_READ | VM_MAYREAD | VM_EXEC | VM_MAYEXEC; | 281 | gate_vma.vm_flags = VM_READ | VM_MAYREAD | VM_EXEC | VM_MAYEXEC; |