9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] return vlong
@ 2005-05-20 14:53 Sergey Reva
  2005-05-20 15:00 ` Russ Cox
  2005-05-20 15:15 ` C H Forsyth
  0 siblings, 2 replies; 4+ messages in thread
From: Sergey Reva @ 2005-05-20 14:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello Fans,

Where I can get information about Plan 9 C call conversion.
Especially, how return uvlong value?

TEXT rdtsc(SB),0,$0
        BYTE $0x0F
        BYTE $0x31

        MOVL .ret+0(FP),BX
        MOVL AX,(BX)
        MOVL DX,4(BX)
        RET

I borrow last 3 lines (not including RET) from C compiler
output (-S flag), and seems it work (CPU freq calculation)
but I not understand what is '.ret', where it's placed.

Sergey
-- 
http://rs-rlab.narod.ru                          mailto:rs_rlab@mail.ru



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-20 15:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-20 14:53 [9fans] return vlong Sergey Reva
2005-05-20 15:00 ` Russ Cox
2005-05-20 15:07   ` jmk
2005-05-20 15:15 ` C H Forsyth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).