Re: Using versioned symbols in assembler parts of a source file

Uwe Bonnes (bon@elektron.ikp.physik.th-darmstadt.de)
Wed, 13 Aug 1997 09:24:12 +0200


>>>>> "Richard" == Richard Henderson <rth@cygnus.com> writes:

>> 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"

Richard> The implementation of SYMBOL_NAME_STR, whereever your patch got
Richard> it from, is likely wrong. ANSI C preprocessor rules require
Richard> this be done with indirection, e.g.

Richard> #define SYMBOL_NAME_STR1(x) #x #define SYMBOL_NAME_STR(x)
Richard> SYMBOL_NAME_STR1(x)

Hallo Richard,

sorry, your explanation is to short for me to understand.
Do you mean that the definition in the kernel is wrong? Or how it is applied
in the sourec of my file? What do you propose to do?

Thanks

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

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