aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/mm')
-rw-r--r--arch/x86_64/mm/init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c
index 9a0e98accf04..2f673225a51f 100644
--- a/arch/x86_64/mm/init.c
+++ b/arch/x86_64/mm/init.c
@@ -774,3 +774,12 @@ void *alloc_bootmem_high_node(pg_data_t *pgdat, unsigned long size)
774 return __alloc_bootmem_core(pgdat->bdata, size, 774 return __alloc_bootmem_core(pgdat->bdata, size,
775 SMP_CACHE_BYTES, (4UL*1024*1024*1024), 0); 775 SMP_CACHE_BYTES, (4UL*1024*1024*1024), 0);
776} 776}
777
778const char *arch_vma_name(struct vm_area_struct *vma)
779{
780 if (vma->vm_mm && vma->vm_start == (long)vma->vm_mm->context.vdso)
781 return "[vdso]";
782 if (vma == &gate_vma)
783 return "[vsyscall]";
784 return NULL;
785}