aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/main.c')
-rw-r--r--arch/um/os-Linux/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c
index 685feaab65d..7aa4c2a7a59 100644
--- a/arch/um/os-Linux/main.c
+++ b/arch/um/os-Linux/main.c
@@ -25,12 +25,7 @@
25#include "os.h" 25#include "os.h"
26#include "um_malloc.h" 26#include "um_malloc.h"
27 27
28/* Set in set_stklim, which is called from main and __wrap_malloc. 28/* Set in main, unchanged thereafter */
29 * __wrap_malloc only calls it if main hasn't started.
30 */
31unsigned long stacksizelim;
32
33/* Set in main */
34char *linux_prog; 29char *linux_prog;
35 30
36#define PGD_BOUND (4 * 1024 * 1024) 31#define PGD_BOUND (4 * 1024 * 1024)
@@ -52,7 +47,6 @@ static void set_stklim(void)
52 exit(1); 47 exit(1);
53 } 48 }
54 } 49 }
55 stacksizelim = (lim.rlim_cur + PGD_BOUND - 1) & ~(PGD_BOUND - 1);
56} 50}
57 51
58static __init void do_uml_initcalls(void) 52static __init void do_uml_initcalls(void)