lkml.org 
[lkml]   [1997]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectUsing versioned symbols in assembler parts of a source file
Hallo,

the driver for transputer link adapter "link" from transputer-08c.tar.gz
has the option to use Assembler in som critical routines.
Here is a part of the code:
"pushl %%edx\n\t" /* call the scheduler */
"call " SYMBOL_NAME_STR(schedule)"\n\t" /* scheduler */
"popl %%edx\n\t"


Trying to compile the code as a versioned module leaves "schedule"
unresolved. I used
gcc -Wall -Wstrict-prototypes -Wno-unused -O2 -fomit-frame-pointer \
-pipe -D__KERNEL__ -DMODULE -DMODVERSIONS -include \
/usr/include/linux/modversions.h -o link.o -c link.c
to compile.

Is there any clean way to solve this problem?

Thanks
--
Uwe Bonnes bon@elektron.ikp.physik.th-darmstadt.de

Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.031 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site