Mladen Nikitovic writes:
> #define MAGIC_QL(n,id,ql) do { \
> __asm__("mov " #id ", %g1\n\t" \
> "mov " #ql ", %g2\n\t" \
> "sethi " #n ", %g0" : : :"g1", "g2" ); \
> } while(0)
OK.
> I'm unsure what syntax I should use. Anybody who knows the correct syntax?
This looks like a generic gcc-on-SPARC assembly question that'd be
better asked of the gcc maintainers, but looking at our own code, it
seems that we specify the clobber list entries without a leading "%".
See, for example, gethrtime() in usr/src/lib/libc/inc/thr_inlines.h.
--
James Carlson, Solaris Networking <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677