[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>
This commit is contained in:
committed by
Linus Torvalds
parent
858259cf7d
commit
ae17381608
@@ -246,7 +246,7 @@ int is_remapped(void *virt)
|
||||
/* Changed during early boot */
|
||||
unsigned long high_physmem;
|
||||
|
||||
extern unsigned long physmem_size;
|
||||
extern unsigned long long physmem_size;
|
||||
|
||||
int init_maps(unsigned long physmem, unsigned long iomem, unsigned long highmem)
|
||||
{
|
||||
@@ -321,7 +321,7 @@ void map_memory(unsigned long virt, unsigned long phys, unsigned long len,
|
||||
extern int __syscall_stub_start, __binary_start;
|
||||
|
||||
void setup_physmem(unsigned long start, unsigned long reserve_end,
|
||||
unsigned long len, unsigned long highmem)
|
||||
unsigned long len, unsigned long long highmem)
|
||||
{
|
||||
unsigned long reserve = reserve_end - start;
|
||||
int pfn = PFN_UP(__pa(reserve_end));
|
||||
|
Reference in New Issue
Block a user