uml: fix STATIC_LINK compilation [before 2.6.11]
PATCH 7/8 uml: fix STATIC_LINK compilation [before 2.6.11]
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(-)
arch/um/kernel/mem.c renamed from arch/um/kernel/mem.c~uml-fix-load-low +1 -1
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel