LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Fail to implement system call in Ubuntu distribution. (https://www.linuxquestions.org/questions/programming-9/fail-to-implement-system-call-in-ubuntu-distribution-715942/)

Kunsheng 03-31-2009 10:05 PM

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

ta0kira 03-31-2009 11:15 PM

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


All times are GMT -5. The time now is 03:56 PM.