[patch 7/8] uml: fix STATIC_LINK compilation [before 2.6.11]

From: blaisorblade
Date: Fri Feb 04 2005 - 17:11:29 EST



From: Jeff Dike <jdike@xxxxxxxxxxx>

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@xxxxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/