svn commit: r215317 - in head/sys: kern mips/mips mips/rmi net netgraph netinet netinet/ipfw netinet6 netipsec powerpc/aim powerpc/booke

Dimitry Andric dim at FreeBSD.org
Sun Nov 14 21:49:40 UTC 2010


On 2010-11-14 22:13, mdf at FreeBSD.org wrote:
> If "static DPCPU_DEFINE" and "STATIC_DPCPU_DEFINE" are the same thing,
> it seems backwards to prefer the macro over the C code.  Is there a
> difference?

After a follow-up commit, r215318, they are different.  This is because
the macro then inserts __asm__(".globl") statements just before the
actual definition of the variable, which was not possible before.

E.g.:

   static __asm__(".globl foo") int bar;

would not compile.


More information about the svn-src-all mailing list