linux-um archives
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Mohammad Jawwad <mjawwad@shaw.ca>
Subject: Re: [uml-devel] adding a system call in uml
Date: Tue, 6 Feb 2007 18:14:18 +0100	[thread overview]
Message-ID: <200702061814.19123.blaisorblade@yahoo.it> (raw)
In-Reply-To: <000001c74755$4f135dd0$ed3a1970$@ca>

On Saturday 03 February 2007 06:36, Mohammad Jawwad wrote:
> Hello,
>
>
>
> How does one add a system call to user mode linux?
>
> I followed the instructions here:=
>
> http://user-mode-linux.sourceforge.net/lksct/

It's from 2002, (I've seen this in the homepage), it's outdated. No 
information about kernel development lasts for so long.

Those instructions could be meaningful for 2.4, and _maybe_ early 2.6 UML 
kernels (I didn't look at the details).
Which UML version did you use?

These days, to add a syscall to a 32bit UML you must patch x86 sources, and 
for a 64bit UML, the x86-64 sources. There will be more info on doing that in 
various websites.So look for info on doing that.

Files to modify are, at least:
For x86:
include/asm-i386/unistd.h
arch/i386/kernel/syscall_table.S

For x86_64:
include/asm-x86_64/unistd.h

Those files are included/reused by UML - this was done to make it easier to 
keep syscall tables in sync.

Also, syscall 253 is already assigned these days.

> The program compiles but dosent print out the the output from the printk()
> statement.
>
> Has anybody successfully installed a system call in uml?

-- 
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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:[~2007-02-06 17:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-03  5:36 [uml-devel] adding a system call in uml Mohammad Jawwad
2007-02-06 17:14 ` Blaisorblade [this message]

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=200702061814.19123.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=mjawwad@shaw.ca \
    --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