public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Creating syscalls: Under an x86_64 arch, where is the syscall table located?
@ 2008-07-05 15:03 Bradley Hanna
  2008-07-05 16:29 ` Rabin Vincent
  0 siblings, 1 reply; 2+ messages in thread
From: Bradley Hanna @ 2008-07-05 15:03 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Creating syscalls: Under an x86_64 arch, where is the syscall table located?
  2008-07-05 15:03 Creating syscalls: Under an x86_64 arch, where is the syscall table located? Bradley Hanna
@ 2008-07-05 16:29 ` Rabin Vincent
  0 siblings, 0 replies; 2+ messages in thread
From: Rabin Vincent @ 2008-07-05 16:29 UTC (permalink / raw)
  To: Bradley Hanna; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-05 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-05 15:03 Creating syscalls: Under an x86_64 arch, where is the syscall table located? Bradley Hanna
2008-07-05 16:29 ` Rabin Vincent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox