From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5558d138ebbedd3edb8eea7a13bb2f23.axp-list@archive.invalid> X-Archive-Original-Message-ID: <19980215224100Z92176-7709+26@mea.tmt.tele.fi> Date: Mon, 16 Feb 1998 00:57:46 +0100 From: Andreas Haumer Subject: Re: nfs-fs as module on 2.0.33 Hi! Andreas Johansson wrote: > > On Sat, 14 Feb 1998, Andreas Haumer wrote: > > > Hi! > > > > There is an "unresolved symbol __kernel_thread" problem with nfs-fs > > when compiled as module on Linux-2.0.33. > > > > The function "__kernel_thread" ist defined in the architecture specific > > module "entry.S". I tried adding the function name to ksyms.c, but the > > kernel didn't work, but crashed immediately after inserting the module. > > > > Has anyone got module support for nfs working on Alpha-Linux? > > Hm... I noticed this too some time ago. I tracked the problem down, and it > concerned the gp register in the kernel_thread function. > > This is from 2.1.71, arch/alpha/kernel/entry.S: > > __kernel_thread: > ldgp $29,0($27) /* we can be called from a module */ > > If i remember correctly, this was all that was needed to fix the problem. > Ah, thanks, I'll give it a try. by the way, when I was looking about the nfs-fs module problem, I also found some other modules suffering from "unresolved symbols". Amongst them were: ac3200.o, smc-ultra32.o, smc-ultra.o 3c503.o, wd.o They are missing "_memcpy_fromio" and "_memcpy_toio", both functions are defined in the architecture-specific file arch/alpha/lib/io.c I added those functions to ksyms.c, and at least "depmod -a" doesn't report that unresolved symbol error now (I can't test those kernel- modules because I don't have the hardware) Here's the context-diff: *** linux-2.0.33/kernel/ksyms.c Sun Feb 15 23:49:34 1998 --- linux/kernel/ksyms.c Sat Feb 14 23:35:14 1998 *************** *** 65,70 **** --- 65,74 ---- #include #endif + #if ARCH == alpha + #include + #endif + extern char *get_options(char *str, int *ints); extern void set_device_ro(kdev_t dev,int flag); extern struct file_operations * get_blkfops(unsigned int); *************** *** 136,141 **** --- 140,150 ---- X(remap_page_range), X(high_memory), X(update_vm_cache), + + #if ARCH == alpha + X(_memcpy_fromio), + X(_memcpy_toio), + #endif /* filesystem internal functions */ X(getname), If someone with the hardware devices please would test the patch and report if the modules work now? We could then suggest this small patch for linux-2.0.34 (together with the nfs module-patch) - andreas -- Andreas Haumer | email: andreas@xss.co.at | PGP key available *x Software + Systeme | phone: +43.1.6001508 | on request. Buchengasse 67/8 | +43.664.3004449 | A-1100 Vienna, Austria | fax: +43.1.6001507 | -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com