LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-31-2009, 10:05 PM   #1
Kunsheng
Member
 
Registered: Mar 2009
Posts: 82

Rep: Reputation: 16
Fail to implement system call in Ubuntu distribution.


Hello everyone,

I am trying to implement a system call in ubuntu:

I installed ubuntu upon VMFusion on Macbook.

'uname -a' return the following results:

2.6.24.1ccustom2 #1 SMP Thu Nov 20 10:43:18 EST 2008 i686 GNU/Linux

I was trying to find syscall_table.S in /usr/src/linux/arch/i386 but only a 'boot' folder is there.

Then I modified something in /usr/src/linux/arch/avr32/syscall_table.S (I found this there), recompile the kernel and reboot, but failed to trigger the system call through user program.


I am pretty sure I didn't modified the correct place but don't know where it is . Couple quesitons on system call on ubuntu could be found online but no concrete answer was posted yet.

I am wondering if anyone did this could give me some idea,



Thanks in advance,

-Kunsheng
 
Old 03-31-2009, 11:15 PM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Look under x86/kernel for the file instead of i386. It didn't work with avr32 because that's for a different CPU; that code isn't used when you compile for x86.
Kevin Barry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call system call from usb driver's code Mr.J Linux - Kernel 4 09-29-2008 03:47 AM
How can i make centos 4.5's system call using vDSO(call *%gs:0x10) instead of int80 tclwp Red Hat 3 08-06-2007 12:07 AM
how to implement my own system call in madrake LE 2005 jawahar_bits Mandriva 2 02-04-2007 10:10 AM
I am trying implement sleep in read system call problem sbharsha Programming 1 09-18-2005 11:48 PM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration