Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88615
b: refs/heads/master
c: 325f86e
h: refs/heads/master
i:
  88613: f01adfc
  88611: 64a4263
  88607: debbf77
v: v3
  • Loading branch information
Paolo Ciarrocchi authored and Ingo Molnar committed Apr 17, 2008
1 parent e4f9695 commit 0b0b4f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e9406597884b5c2f196b124bdd6af47351562a9d
refs/heads/master: 325f86ec6d2ae4ab9879e745a92444f8bac20233
13 changes: 8 additions & 5 deletions trunk/arch/x86/kernel/syscall_64.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* System call table for x86-64. */
/* System call table for x86-64. */

#include <linux/linkage.h>
#include <linux/sys.h>
Expand All @@ -7,20 +7,23 @@

#define __NO_STUBS

#define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
#define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
#undef _ASM_X86_64_UNISTD_H_
#include <asm/unistd_64.h>

#undef __SYSCALL
#define __SYSCALL(nr, sym) [ nr ] = sym,
#define __SYSCALL(nr, sym) [nr] = sym,
#undef _ASM_X86_64_UNISTD_H_

typedef void (*sys_call_ptr_t)(void);
typedef void (*sys_call_ptr_t)(void);

extern void sys_ni_syscall(void);

const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
/* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */
/*
*Smells like a like a compiler bug -- it doesn't work
*when the & below is removed.
*/
[0 ... __NR_syscall_max] = &sys_ni_syscall,
#include <asm/unistd_64.h>
};

0 comments on commit 0b0b4f6

Please sign in to comment.