Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138490
b: refs/heads/master
c: 13a2cb3
h: refs/heads/master
v: v3
  • Loading branch information
Anton Blanchard authored and Benjamin Herrenschmidt committed Feb 23, 2009
1 parent 3f7ff8d commit 1cd0a98
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a465f9b694bcfa4957d06751c0274ded49421c82
refs/heads/master: 13a2cb3694d7237e6cc3e94fcb311b81908ccd06
22 changes: 11 additions & 11 deletions trunk/arch/powerpc/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@
#define MIN_GAP (128*1024*1024)
#define MAX_GAP (TASK_SIZE/6*5)

static inline int mmap_is_legacy(void)
{
if (current->personality & ADDR_COMPAT_LAYOUT)
return 1;

if (current->signal->rlim[RLIMIT_STACK].rlim_cur == RLIM_INFINITY)
return 1;

return sysctl_legacy_va_layout;
}

static inline unsigned long mmap_base(void)
{
unsigned long gap = current->signal->rlim[RLIMIT_STACK].rlim_cur;
Expand All @@ -46,17 +57,6 @@ static inline unsigned long mmap_base(void)
return TASK_SIZE - (gap & PAGE_MASK);
}

static inline int mmap_is_legacy(void)
{
if (current->personality & ADDR_COMPAT_LAYOUT)
return 1;

if (current->signal->rlim[RLIMIT_STACK].rlim_cur == RLIM_INFINITY)
return 1;

return sysctl_legacy_va_layout;
}

/*
* This function, called very early during the creation of a new
* process VM image, sets up which VM layout function to use:
Expand Down

0 comments on commit 1cd0a98

Please sign in to comment.