2002-03-21 17:36:56

by MånsRullgård

[permalink] [raw]
Subject: [PATCH] Fix alpha NR_SYSCALLS

This patch fixes the incorrect macro NR_SYSCALLS in
arch/alpha/kernel/entry.S. With the wrong value the last syscalls are
unavailable. The patch is against 2.4.18.

--
M?ns Rullg?rd
[email protected]


--- arch/alpha/kernel/entry.S.orig Fri Nov 9 22:45:35 2001
+++ arch/alpha/kernel/entry.S Thu Mar 21 18:06:21 2002
@@ -10,7 +10,7 @@

#define SIGCHLD 20

-#define NR_SYSCALLS 378
+#define NR_SYSCALLS 381

/*
* These offsets must match with alpha_mv in <asm/machvec.h>.


2002-03-29 05:28:10

by Richard Henderson

[permalink] [raw]
Subject: Re: [PATCH] Fix alpha NR_SYSCALLS

On Thu, Mar 21, 2002 at 06:35:15PM +0100, M?nsRullg?rd wrote:
> -#define NR_SYSCALLS 378
> +#define NR_SYSCALLS 381

Actually, the correct value is 382. I've fixed this
and added a compile-time check for correctness.


r~