linux-um archives
 help / color / mirror / Atom feed
From: Mohammad Jawwad <mjawwad@shaw.ca>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] adding a system call in uml
Date: Fri, 02 Feb 2007 22:36:51 -0700	[thread overview]
Message-ID: <000001c74755$4f135dd0$ed3a1970$@ca> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 562 bytes --]

Hello,

 

How does one add a system call to user mode linux?

I followed the instructions here:=

http://user-mode-linux.sourceforge.net/lksct/

 

Instead of using his stub(which dosent work) I used this one:

 

#include <stdio.h>

#include <sys/syscall.h>

#include <linux/unistd.h>

 

int main()

{

    syscall(253);   // I assigned number 253 to my system call in unistd.h

    return 0;

}

 

The program compiles but dosent print out the the output from the printk()
statement.

Has anybody successfully installed a system call in uml?

 

Thank you


[-- Attachment #1.2: Type: text/html, Size: 3080 bytes --]

[-- Attachment #2: Type: text/plain, Size: 374 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
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-03  5:38 UTC|newest]

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

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='000001c74755$4f135dd0$ed3a1970$@ca' \
    --to=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