2001-10-25 17:25:07

by Christoph Hellwig

[permalink] [raw]
Subject: [PATCH]

Hi Linus,

the appended patch adds four exports needed for Linux-ABI:

o do_fork & do_pipe because the emulated SysV syscalls call
these directly.
o the other two are needed by emulated syscongig() support.

Please apply,

Christoph

--
Of course it doesn't work. We've performed a software upgrade.

diff -uNr -Xdontdiff ../master/linux-2.4.14-pre1/kernel/ksyms.c linux-2.4.14-pre1/kernel/ksyms.c
--- ../master/linux-2.4.14-pre1/kernel/ksyms.c Thu Oct 25 19:05:49 2001
+++ linux-2.4.14-pre1/kernel/ksyms.c Thu Oct 25 19:16:47 2001
@@ -60,6 +60,7 @@
extern void *sys_call_table;

extern struct timezone sys_tz;
+extern int max_threads;
extern int request_dma(unsigned int dmanr, char * deviceID);
extern void free_dma(unsigned int dmanr);
extern spinlock_t dma_spin_lock;
@@ -550,3 +551,11 @@

EXPORT_SYMBOL(tasklist_lock);
EXPORT_SYMBOL(pidhash);
+
+/* for Linux-ABI */
+EXPORT_SYMBOL(do_fork);
+EXPORT_SYMBOL(do_pipe);
+
+/* sysconfig support */
+EXPORT_SYMBOL(nr_free_pages);
+EXPORT_SYMBOL(max_threads);