Messages in this thread Patch in this message | | | Subject | [patch 7/8] uml: fix STATIC_LINK compilation [before 2.6.11] | From | blaisorblade@yahoo ... | Date | Fri, 04 Feb 2005 19:35:55 +0100 |
| |
From: Jeff Dike <jdike@addtoit.com>
This fixes a bug which assumes that __binary_start starts on a page boundary, which isn't true when UML is configured to load into the normal executable area.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> ---
linux-2.6.11-paolo/arch/um/kernel/mem.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN arch/um/kernel/mem.c~uml-fix-load-low arch/um/kernel/mem.c --- linux-2.6.11/arch/um/kernel/mem.c~uml-fix-load-low 2005-02-04 06:45:31.750294120 +0100 +++ linux-2.6.11-paolo/arch/um/kernel/mem.c 2005-02-04 06:45:31.753293664 +0100 @@ -79,7 +79,7 @@ void mem_init(void) uml_reserved = brk_end; /* Fill in any hole at the start of the binary */ - start = (unsigned long) &__binary_start; + start = (unsigned long) &__binary_start & PAGE_MASK; if(uml_physmem != start){ map_memory(uml_physmem, __pa(uml_physmem), start - uml_physmem, 1, 1, 0); _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |