sys_parisc.c (c1144d29f405ce1f4e6ede6482beb3d0d09750c6) sys_parisc.c (5b00ca0b8035e49ef7c466e959c5cb457a654351)
1
2/*
3 * PARISC specific syscalls
4 *
5 * Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org>
6 * Copyright (C) 2000-2003 Paul Bame <bame at parisc-linux.org>
7 * Copyright (C) 2001 Thomas Bogendoerfer <tsbogend at parisc-linux.org>
8 * Copyright (C) 1999-2014 Helge Deller <deller@gmx.de>

--- 142 unchanged lines hidden (view full) ---

151 const unsigned long flags)
152{
153 struct vm_area_struct *vma, *prev;
154 struct mm_struct *mm = current->mm;
155 unsigned long addr = addr0;
156 int do_color_align, last_mmap;
157 struct vm_unmapped_area_info info;
158
1
2/*
3 * PARISC specific syscalls
4 *
5 * Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org>
6 * Copyright (C) 2000-2003 Paul Bame <bame at parisc-linux.org>
7 * Copyright (C) 2001 Thomas Bogendoerfer <tsbogend at parisc-linux.org>
8 * Copyright (C) 1999-2014 Helge Deller <deller@gmx.de>

--- 142 unchanged lines hidden (view full) ---

151 const unsigned long flags)
152{
153 struct vm_area_struct *vma, *prev;
154 struct mm_struct *mm = current->mm;
155 unsigned long addr = addr0;
156 int do_color_align, last_mmap;
157 struct vm_unmapped_area_info info;
158
159#ifdef CONFIG_64BIT
160 /* This should only ever run for 32-bit processes. */
161 BUG_ON(!test_thread_flag(TIF_32BIT));
162#endif
163
164 /* requested length too big for entire address space */
165 if (len > TASK_SIZE)
166 return -ENOMEM;
167
168 do_color_align = 0;
169 if (filp || (flags & MAP_SHARED))
170 do_color_align = 1;
171 last_mmap = GET_LAST_MMAP(filp);

--- 222 unchanged lines hidden ---
159 /* requested length too big for entire address space */
160 if (len > TASK_SIZE)
161 return -ENOMEM;
162
163 do_color_align = 0;
164 if (filp || (flags & MAP_SHARED))
165 do_color_align = 1;
166 last_mmap = GET_LAST_MMAP(filp);

--- 222 unchanged lines hidden ---