diff options
author | Jeff Dike <jdike@addtoit.com> | 2005-11-07 03:58:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:31 -0500 |
commit | ae17381608a11781a6a67e0ce51607f36780aac7 (patch) | |
tree | e4bd104cb7f3728f2e91646d4def091f8f933447 /arch/um/os-Linux | |
parent | 858259cf7d1c443c836a2022b78cb281f0a9b95e (diff) |
[PATCH] uml: big memory fixes
A number of fixes to improve behavior when large physical memory sizes
are specified:
- libc files need -D_FILE_OFFSET_BITS=64 because there are unavoidable uses
of non-64 interfaces in libc
- some %d need to be %u
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r-- | arch/um/os-Linux/mem.c | 6 | ||||
-rw-r--r-- | arch/um/os-Linux/start_up.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c index 8e71edaaf80b..9d7d69a523bb 100644 --- a/arch/um/os-Linux/mem.c +++ b/arch/um/os-Linux/mem.c | |||
@@ -88,7 +88,7 @@ int make_tempfile(const char *template, char **out_tempname, int do_unlink) | |||
88 | * This proc is used in start_up.c | 88 | * This proc is used in start_up.c |
89 | * So it isn't 'static'. | 89 | * So it isn't 'static'. |
90 | */ | 90 | */ |
91 | int create_tmp_file(unsigned long len) | 91 | int create_tmp_file(unsigned long long len) |
92 | { | 92 | { |
93 | int fd, err; | 93 | int fd, err; |
94 | char zero; | 94 | char zero; |
@@ -121,7 +121,7 @@ int create_tmp_file(unsigned long len) | |||
121 | return(fd); | 121 | return(fd); |
122 | } | 122 | } |
123 | 123 | ||
124 | static int create_anon_file(unsigned long len) | 124 | static int create_anon_file(unsigned long long len) |
125 | { | 125 | { |
126 | void *addr; | 126 | void *addr; |
127 | int fd; | 127 | int fd; |
@@ -144,7 +144,7 @@ static int create_anon_file(unsigned long len) | |||
144 | 144 | ||
145 | extern int have_devanon; | 145 | extern int have_devanon; |
146 | 146 | ||
147 | int create_mem_file(unsigned long len) | 147 | int create_mem_file(unsigned long long len) |
148 | { | 148 | { |
149 | int err, fd; | 149 | int err, fd; |
150 | 150 | ||
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c index 553a09c7d0bc..37517d49c4ae 100644 --- a/arch/um/os-Linux/start_up.c +++ b/arch/um/os-Linux/start_up.c | |||
@@ -296,7 +296,7 @@ static void __init check_ptrace(void) | |||
296 | check_sysemu(); | 296 | check_sysemu(); |
297 | } | 297 | } |
298 | 298 | ||
299 | extern int create_tmp_file(unsigned long len); | 299 | extern int create_tmp_file(unsigned long long len); |
300 | 300 | ||
301 | static void check_tmpexec(void) | 301 | static void check_tmpexec(void) |
302 | { | 302 | { |