forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
um: set __HAVE_ARCH_GATE_AREA for x86_64
Implement arch_vma_name() and make get_gate_vma(), in_gate_area() and in_gate_area_no_mm() a nop. We need arch_vma_name() to support vDSO. Signed-off-by: Richard Weinberger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
1 parent
548f0a4
commit fc9a001
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "linux/mm.h" | ||
#include "asm/page.h" | ||
#include "asm/mman.h" | ||
|
||
const char *arch_vma_name(struct vm_area_struct *vma) | ||
{ | ||
if (vma->vm_mm && vma->vm_start == um_vdso_addr) | ||
return "[vdso]"; | ||
|
||
return NULL; | ||
} | ||
|
||
struct vm_area_struct *get_gate_vma(struct mm_struct *mm) | ||
{ | ||
return NULL; | ||
} | ||
|
||
int in_gate_area(struct mm_struct *mm, unsigned long addr) | ||
{ | ||
return 0; | ||
} | ||
|
||
int in_gate_area_no_mm(unsigned long addr) | ||
{ | ||
return 0; | ||
} |