From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HDDbQ-0005eu-8l for user-mode-linux-devel@lists.sourceforge.net; Fri, 02 Feb 2007 21:38:20 -0800 Received: from shawidc-mo1.cg.shawcable.net ([24.71.223.10] helo=pd4mo3so.prod.shaw.ca) by mail.sourceforge.net with esmtp (Exim 4.44) id 1HDDbO-0001ks-PJ for user-mode-linux-devel@lists.sourceforge.net; Fri, 02 Feb 2007 21:38:20 -0800 Received: from pd3mr2so.prod.shaw.ca (pd3mr2so-qfe3.prod.shaw.ca [10.0.141.178]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JCV00934GXJBJ70@l-daemon> for user-mode-linux-devel@lists.sourceforge.net; Fri, 02 Feb 2007 22:36:55 -0700 (MST) Received: from pn2ml6so.prod.shaw.ca ([10.0.121.150]) by pd3mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JCV00FYZGXI2D51@pd3mr2so.prod.shaw.ca> for user-mode-linux-devel@lists.sourceforge.net; Fri, 02 Feb 2007 22:36:55 -0700 (MST) Received: from yellowstone ([70.72.231.95]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JCV00596GXGXDG0@l-daemon> for user-mode-linux-devel@lists.sourceforge.net; Fri, 02 Feb 2007 22:36:54 -0700 (MST) Date: Fri, 02 Feb 2007 22:36:51 -0700 From: Mohammad Jawwad Message-id: <000001c74755$4f135dd0$ed3a1970$@ca> MIME-version: 1.0 Content-language: en-us Subject: [uml-devel] adding a system call in uml List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0884591304==" Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: user-mode-linux-devel@lists.sourceforge.net This is a multipart message in MIME format. --===============0884591304== Content-type: multipart/alternative; boundary="----=_NextPart_000_0001_01C7471A.A2B485D0" Content-language: en-us This is a multipart message in MIME format. ------=_NextPart_000_0001_01C7471A.A2B485D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 #include #include 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 ------=_NextPart_000_0001_01C7471A.A2B485D0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

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

I followed the instructions here:=3D

http://user-mode-l= inux.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

------=_NextPart_000_0001_01C7471A.A2B485D0-- --===============0884591304== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============0884591304== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel --===============0884591304==--