Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96459
b: refs/heads/master
c: 60a2988
h: refs/heads/master
i:
  96457: dc65b0b
  96455: 031531d
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 13, 2008
1 parent 76cdce3 commit cd53246
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: a7dfa9403bf3b03899d5ef5d10b0c5c3f74b0682
refs/heads/master: 60a2988aea701a6424809a5432bf068667aac177
5 changes: 4 additions & 1 deletion trunk/arch/um/kernel/um_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ int __init linux_main(int argc, char **argv)
{
unsigned long avail, diff;
unsigned long virtmem_size, max_physmem;
unsigned long stack;
unsigned int i;
int add;
char * mode;
Expand Down Expand Up @@ -348,7 +349,9 @@ int __init linux_main(int argc, char **argv)
}

virtmem_size = physmem_size;
avail = TASK_SIZE - start_vm;
stack = (unsigned long) argv;
stack &= ~(1024 * 1024 - 1);
avail = stack - start_vm;
if (physmem_size > avail)
virtmem_size = avail;
end_vm = start_vm + virtmem_size;
Expand Down

0 comments on commit cd53246

Please sign in to comment.