vdso.c (31d1b7710262fba12282b24083f20dc76e0efc93) | vdso.c (adcc81f148d733b7e8e641300c5590a2cdc13bf3) |
---|---|
1/* 2 * Copyright (C) 2015 Imagination Technologies 3 * Author: Alex Smith <alex.smith@imgtec.com> 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License as published by the 7 * Free Software Foundation; either version 2 of the License, or (at your 8 * option) any later version. --- 112 unchanged lines hidden (view full) --- 121 struct vm_area_struct *vma; 122 int ret; 123 124 if (down_write_killable(&mm->mmap_sem)) 125 return -EINTR; 126 127 /* Map delay slot emulation page */ 128 base = mmap_region(NULL, STACK_TOP, PAGE_SIZE, | 1/* 2 * Copyright (C) 2015 Imagination Technologies 3 * Author: Alex Smith <alex.smith@imgtec.com> 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License as published by the 7 * Free Software Foundation; either version 2 of the License, or (at your 8 * option) any later version. --- 112 unchanged lines hidden (view full) --- 121 struct vm_area_struct *vma; 122 int ret; 123 124 if (down_write_killable(&mm->mmap_sem)) 125 return -EINTR; 126 127 /* Map delay slot emulation page */ 128 base = mmap_region(NULL, STACK_TOP, PAGE_SIZE, |
129 VM_READ|VM_WRITE|VM_EXEC| 130 VM_MAYREAD|VM_MAYWRITE|VM_MAYEXEC, | 129 VM_READ | VM_EXEC | 130 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC, |
131 0, NULL); 132 if (IS_ERR_VALUE(base)) { 133 ret = base; 134 goto out; 135 } 136 137 /* 138 * Determine total area size. This includes the VDSO data itself, the --- 79 unchanged lines hidden --- | 131 0, NULL); 132 if (IS_ERR_VALUE(base)) { 133 ret = base; 134 goto out; 135 } 136 137 /* 138 * Determine total area size. This includes the VDSO data itself, the --- 79 unchanged lines hidden --- |