Hi,
The mem_map stuff has changed in linux kernel 2.4.
Tried to patch it. But since I'm not very familiar with linux mem_map
stuff and because I don't know what has changed since 2.2.x it's not a
very good patch. It makes plex86 compile under kernel 2.4 but that's about
it. Hint: don't try it.
Someone with experience on this topic please fix it.
PS: They also abandoned MAP_NR, and I don't know how to replace it.
Frank.
---- the patch ----
--- host-linux.c.orig Thu Sep 7 21:40:10 2000
+++ host-linux.c Thu Sep 7 22:23:19 2000
@@ -797,7 +797,11 @@
*/
for (p = 0; p < pg->guest_n_pages; p++)
+#if LINUX_VERSION_CODE >= VERSION_CODE(2,4,0)
+ set_bit(PG_reserved, &pg->guest[p]);
+#else
mem_map_reserve(pg->guest[p]);
+#endif
}
static void
@@ -808,7 +812,11 @@
/* Remove the PG_reserved flags before returning the pages */
for (p = 0; p < pg->guest_n_pages; p++)
+#if LINUX_VERSION_CODE >= VERSION_CODE(2,4,0)
+ clear_bit(PG_reserved, &pg->guest[p]);
+#else
mem_map_unreserve(pg->guest[p]);
+#endif
}