Re: [PATCH -rt 2/2] arm update

From: Nicolas Pitre
Date: Thu May 18 2006 - 11:25:30 EST


On Thu, 18 May 2006, Daniel Walker wrote:

> On Thu, 2006-05-18 at 09:53 -0400, Nicolas Pitre wrote:
> > > - adds a new NR_syscalls macro, converts the old one into __NR_syscalls for
> > > calculating the table padding .
> >
> > Why?
> >
>
> > And no NR_syscalls definition should be present in asm-arm/unistd.h at
> > all.
> >
>
> Right , it's not normally needed .. In RT we size an array by
> NR_syscalls for latency tracing (kernel/latency.c) . So we need some way
> to determine the the number of syscalls .. Do you know of another way we
> can get that number of syscalls on ARM ?

Just do the same as in entry-common.S: define the CALL() macro and
include calls.S.

Or declare a global variable in entry-common.S and assign it the
NR_syscalls value.


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