lkml.org 
[lkml]   [1997]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Using versioned symbols in assembler parts of a source file
>>>>> "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 ----------

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