Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

Creating syscalls: Under an x86_64 arch, where is the syscall table located?

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


brahan.ml at gmail

Jul 5, 2008, 8:03 AM

Post #1 of 2 (136 views)
Permalink
Creating syscalls: Under an x86_64 arch, where is the syscall table located?

I am trying to create a syscall for testing purposes. I have a kernel
configured for x86_64 arch and need to know where the syscall table is
located. I believe I have found the unistd.h file that I need under
'include/asm/unistd_64.h' but I cannot find a file containing the
'sys_call_table' that corresponds with that 'unistd_64.h' file. I can
find a file called syscall_table_32.S, but no table for 64. The table
is no longer located in entry.S, so where do I find it? The
'__syscallN' macro is not finding my syscall definition.

Is that enough information?

thanks for your patience,

brahan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo[at]vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


rabin at rab

Jul 5, 2008, 9:29 AM

Post #2 of 2 (111 views)
Permalink
Re: Creating syscalls: Under an x86_64 arch, where is the syscall table located? [In reply to]

On Sat, Jul 05, 2008 at 11:03:49AM -0400, Bradley Hanna wrote:
> I am trying to create a syscall for testing purposes. I have a kernel
> configured for x86_64 arch and need to know where the syscall table is
> located. I believe I have found the unistd.h file that I need under
> 'include/asm/unistd_64.h' but I cannot find a file containing the
> 'sys_call_table' that corresponds with that 'unistd_64.h' file. I can
> find a file called syscall_table_32.S, but no table for 64. The table
> is no longer located in entry.S, so where do I find it? The
> '__syscallN' macro is not finding my syscall definition.

sys_call_table for x86_64 is defined in arch/x86/kernel/syscall_64.c.

Rabin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo[at]vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.