linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Question about syscall in UML tt mode
@ 2005-04-27  8:56 Alex LIU
  0 siblings, 0 replies; only message in thread
From: Alex LIU @ 2005-04-27  8:56 UTC (permalink / raw)
  To: UML-dev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-27  8:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27  8:56 [uml-devel] Question about syscall in UML tt mode Alex LIU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox