* [uml-devel] [patch 7/8] uml: fix STATIC_LINK compilation [before 2.6.11]
@ 2005-02-04 18:35 blaisorblade
0 siblings, 0 replies; only message in thread
From: blaisorblade @ 2005-02-04 18:35 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, jdike, user-mode-linux-devel, blaisorblade
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);
_
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-04 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04 18:35 [uml-devel] [patch 7/8] uml: fix STATIC_LINK compilation [before 2.6.11] blaisorblade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox