From: Jeff Dike <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> --- 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); _ ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel