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

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

#define SYMBOL_NAME_STR1(x) #x
#define SYMBOL_NAME_STR(x) SYMBOL_NAME_STR1(x)


r~

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