From: Alex LIU <alex.liu@st.com>
To: UML-dev <user-mode-linux-devel@lists.sourceforge.net>
Subject: [uml-devel] Question about syscall in UML tt mode
Date: Wed, 27 Apr 2005 16:56:47 +0800 [thread overview]
Message-ID: <002801c54b07$0cdde490$90b3c68a@SHZ.ST.COM> (raw)
Hi all:
Now I added a system call in UML which should use pt_regs as its parameter. So the system call is "sys_XXX(struct pt_regs)" just like sys_fork(struct pt_regs) under i386 architecture. But I didn't find any syscall under UML which use pt_regs as its parameter.
I found the EXECUTE_SYSCALL(syscall,regs) in UML is defined only with 6 parameters which are ebx,ecx.... So I think I can't use pt_regs as my syscall parameter,right?
So I directly use current->thread.regs in my system call. It seems worked.
I want to know whether it's safe to do that. Thanks!
Alex
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id\x105hix
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
reply other threads:[~2005-04-27 8:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='002801c54b07$0cdde490$90b3c68a@SHZ.ST.COM' \
--to=alex.liu@st.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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