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/include | |
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/include')
-rw-r--r-- | arch/um/include/mem_user.h | 2 | ||||
-rw-r--r-- | arch/um/include/os.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/include/mem_user.h b/arch/um/include/mem_user.h index 9fef4123a65a..a1064c5823bf 100644 --- a/arch/um/include/mem_user.h +++ b/arch/um/include/mem_user.h | |||
@@ -57,7 +57,7 @@ extern int init_maps(unsigned long physmem, unsigned long iomem, | |||
57 | unsigned long highmem); | 57 | unsigned long highmem); |
58 | extern unsigned long get_vm(unsigned long len); | 58 | extern unsigned long get_vm(unsigned long len); |
59 | extern void setup_physmem(unsigned long start, unsigned long usable, | 59 | extern void setup_physmem(unsigned long start, unsigned long usable, |
60 | unsigned long len, unsigned long highmem); | 60 | unsigned long len, unsigned long long highmem); |
61 | extern void add_iomem(char *name, int fd, unsigned long size); | 61 | extern void add_iomem(char *name, int fd, unsigned long size); |
62 | extern unsigned long phys_offset(unsigned long phys); | 62 | extern unsigned long phys_offset(unsigned long phys); |
63 | extern void unmap_physmem(void); | 63 | extern void unmap_physmem(void); |
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index 112d7288f0cf..2cccfa5b8ab5 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -167,7 +167,7 @@ extern int can_do_skas(void); | |||
167 | #endif | 167 | #endif |
168 | 168 | ||
169 | /* mem.c */ | 169 | /* mem.c */ |
170 | extern int create_mem_file(unsigned long len); | 170 | extern int create_mem_file(unsigned long long len); |
171 | 171 | ||
172 | /* process.c */ | 172 | /* process.c */ |
173 | extern unsigned long os_process_pc(int pid); | 173 | extern unsigned long os_process_pc(int pid); |