Skip to contentSkip to conversation

$$mulI missing

parisc-linux Grant Grundler 3 participants 6 messages Feb 1, 2001

lore
Share & tools
lore
#0 lore raw

I enabled "CONFIG_MODULES" to build a 64-bit kernel
and got the following link error:
arch/parisc64/kernel/kernel.o(__ksymtab+0x300): undefined reference to `$$mulI'

I'll try to work around it by using HPUX's 64-bit libmilli.a.

grant

#1 lore raw

= I enabled "CONFIG_MODULES" to build a 64-bit kernel
= and got the following link error:
= arch/parisc64/kernel/kernel.o(__ksymtab+0x300): undefined reference to `$$mul I'
=
= I'll try to work around it by using HPUX's 64-bit libmilli.a.

I didn't think the 64-bit compiler used mulI so didn't include it in the millicode routines. I'm curious what's using it. I can port the HP multiply routines if needed but want to make sure it's really needed...

	-P
#2 lore raw
Quoted 2 lines · Paul Bame

I didn't think the 64-bit compiler used mulI so didn't include it in the millicode routines. I'm curious what's using it.

arch/parisc/kernel/parisc_ksyms.c

Exported for (guess what?) CONFIG_MODULE support. :^/

I've committed the following patch. Paul tells me on 64 bit, millicode looks to be limited to div* and rem*.

grant

02/01 20:16:08 renamed from 12/31 01:42:06 1.11 +0 -4
diff -u -p -r1.11 parisc_ksyms.c
@@ -97,8 +97,6 @@ extern void $$divI(void);
 extern void $$divU(void);
 extern void $$remI(void);
 extern void $$remU(void);
-extern void $$mulI(void);
-extern void $$mulU(void);
 extern void $$divU_3(void);
 extern void $$divU_5(void);
 extern void $$divU_6(void);
@@ -122,8 +120,6 @@ EXPORT_SYMBOL_NOVERS($$divI);
 EXPORT_SYMBOL_NOVERS($$divU);
 EXPORT_SYMBOL_NOVERS($$remI);
 EXPORT_SYMBOL_NOVERS($$remU);
-EXPORT_SYMBOL_NOVERS($$mulI);
-EXPORT_SYMBOL_NOVERS($$mulU);
 EXPORT_SYMBOL_NOVERS($$divU_3);
 EXPORT_SYMBOL_NOVERS($$divU_5);
 EXPORT_SYMBOL_NOVERS($$divU_6);

Grant Grundler
parisc-linux {PCI|IOMMU|SMP} hacker
+1.408.447.7253

#3 lore raw
Quoted 10 lines · Grant Grundler
Quoted 2 lines · Paul Bame

I didn't think the 64-bit compiler used mulI so didn't include it in the millicode routines. I'm curious what's using it.

arch/parisc/kernel/parisc_ksyms.c

Exported for (guess what?) CONFIG_MODULE support. :^/

I've committed the following patch. Paul tells me on 64 bit, millicode looks to be limited to div* and rem*.

Errm. 32 bit might still want them. #ifndef __LP64__ ?

Alan

Signature · 1 line
Linuxcare.
#4 lore raw
Quoted 1 line · Alan Modra

Errm. 32 bit might still want them. #ifndef __LP64__ ?

Ahh, missed seeing your second commit :-)

#5 lore raw
Quoted 5 lines · Alan Modra
Quoted 1 line · Alan Modra

Errm. 32 bit might still want them. #ifndef __LP64__ ?

Ahh, missed seeing your second commit :-)

Exactly. My oversight. Thanks to Paul (Bame) for asking me the same question. And the answer was: doh! of course! :^)

grant

Grant Grundler
parisc-linux {PCI|IOMMU|SMP} hacker
+1.408.447.7253