Bug#486798: restore export of handle_mm_fault for Mac on Linux kernel modules
With kernel release 2.6.23 the export of handle_mm_fault was removed.
The kernel modules for the Mac on Linux emulator rely on this symbol.
Because the mol-source package containing these modules no longer builds
RC bug #445359 was filed. The bug log is a bit confusing because it
mixes several issues, but the baseline is, that building mol modules
Therefore please add the attached patch to the powerpc Debian kernel
packages. This reenables the export of handle_mm_fault for powerpc only.
I know that SuSE also applies a similar patch to their powerpc kernels
to be able to build the mol modules. As the patch is fairly short and
the symbol was exported for a long time before I don't see any bad side
effects of applying this patch.
I the long run an inclusion of the mol kernel moduls into the linux
upstream source would be the preferred solution. There is currently some
upstream work in this direction. But it won't be ready for lenny.
The corresponding upstream (mol) bug report is:
Please CC email@example.com on any replies.
Thanks for considering this patch.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.26-rc5
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c
index c6b1aa3..455fb38 100644
@@ -189,6 +189,7 @@ EXPORT_SYMBOL(set_context);
extern long mol_trampoline;
EXPORT_SYMBOL(mol_trampoline); /* For MOL */
EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
+EXPORT_SYMBOL(handle_mm_fault); /* For MOL */
extern int mmu_hash_lock;
EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */