From: Sergey Reva <rs_rlab@mail.ru>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: [9fans] return vlong
Date: Fri, 20 May 2005 17:53:10 +0300 [thread overview]
Message-ID: <5114550406.20050520175310@mail.ru> (raw)
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
next reply other threads:[~2005-05-20 14:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-20 14:53 Sergey Reva [this message]
2005-05-20 15:00 ` Russ Cox
2005-05-20 15:07 ` jmk
2005-05-20 15:15 ` C H Forsyth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5114550406.20050520175310@mail.ru \
--to=rs_rlab@mail.ru \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).