From 7fc26d496ab66b4b98e14991593af98a404538ec Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Mon, 7 Apr 2014 11:58:57 +0200 Subject: [PATCH] base-fiasco: relocate all modules in bootstrap Fix #1116 --- base-fiasco/patches/bootstrap.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 base-fiasco/patches/bootstrap.patch diff --git a/base-fiasco/patches/bootstrap.patch b/base-fiasco/patches/bootstrap.patch new file mode 100644 index 000000000..f70cdcc72 --- /dev/null +++ b/base-fiasco/patches/bootstrap.patch @@ -0,0 +1,11 @@ +--- fiasco/snapshot/l4/pkg/bootstrap/server/src/startup.cc 2014-04-07 11:55:10.811087853 +0200 +--- fiasco/snapshot/l4/pkg/bootstrap/server/src/startup.cc 2014-04-07 11:56:24.891089205 +0200 +@@ -289,7 +289,7 @@ + + printf(" move modules to %lx with offset %lx\n", modaddr, offset); + +- for (i = dir; i != mbi->mods_count - dir ; offset > 0 ? i-- : i++) ++ for (i = dir; offset > 0 ? i != 0 : i <= mbi->mods_count ; offset > 0 ? i-- : i++) + { + unsigned long start = (L4_MB_MOD_PTR(mbi->mods_addr))[i-1].mod_start; + unsigned long end = (L4_MB_MOD_PTR(mbi->mods_addr))[i-1].mod_end;