add new system call

General support questions
Post Reply
DocDJ
Posts: 9
Joined: 2015/11/14 12:25:17

add new system call

Post by DocDJ » 2017/06/28 12:32:05

I am trying to add a new system call on my Centos 7 system: 3.10.0-514.10.2.el7.[myname].x86_64
I have done this on RHEL and had no problems. On the Centos system, I need to find the proper paths and filenames that correspond to the files below, as they appear to be different from my old RHEL system:
syscalls.S or syscall_table.S
unistd.h (system version - I have found the user version) used in compiling the kernel.

and any other system files that have to be changed.

PS. my new call will be a function inside fault.c (because it needs access to data in that file.)

DocDJ
Posts: 9
Joined: 2015/11/14 12:25:17

Re: add new system call

Post by DocDJ » 2017/08/07 14:38:56

I have discovered that syscall_32.tbl or syscall_64.tbl are the names to be used in x86-64.

Post Reply