Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192569
b: refs/heads/master
c: ce60d4d
h: refs/heads/master
i:
  192567: cae373a
v: v3
  • Loading branch information
Jan Kiszka authored and Jiri Kosina committed May 10, 2010
1 parent 5e751ad commit 9ffb464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: a8cd4561ea176f51e9f4707873ca4eff8fd5ee70
refs/heads/master: ce60d4d5d50a5454768faa522da98aa5f8070bd0
4 changes: 2 additions & 2 deletions trunk/arch/um/kernel/skas/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "sysdep/syscalls.h"

extern int syscall_table_size;
#define NR_syscalls (syscall_table_size / sizeof(void *))
#define NR_SYSCALLS (syscall_table_size / sizeof(void *))

void handle_syscall(struct uml_pt_regs *r)
{
Expand All @@ -30,7 +30,7 @@ void handle_syscall(struct uml_pt_regs *r)
* in case it's a compiler bug.
*/
syscall = UPT_SYSCALL_NR(r);
if ((syscall >= NR_syscalls) || (syscall < 0))
if ((syscall >= NR_SYSCALLS) || (syscall < 0))
result = -ENOSYS;
else result = EXECUTE_SYSCALL(syscall, regs);

Expand Down

0 comments on commit 9ffb464

Please sign in to comment.