[RFC6 PATCH v6 00/21] ILP32 for ARM64
Catalin Marinas
catalin.marinas at arm.com
Fri May 13 04:03:03 PDT 2016
On Fri, May 13, 2016 at 01:51:15PM +0300, Yury Norov wrote:
> On Fri, May 13, 2016 at 09:28:03AM +0000, Catalin Marinas wrote:
> > The discussion is mainly around whether USER_DS for 32-bit compat apps
> > should be the same as USER_DS for native 32-bit apps. Even for native
> > 32-bit kernels, we don't use STACK_TOP as addr_limit. A read/write from
> > 0xffffffff would fail in both cases anyway. I think the LTP test doesn't
> > even try to access such memory but only to probe the range validity (I
> > haven't managed to build the latest LTP yet).
>
> This fix lets me build it (on top of 7b3ef3b0b)
> Of course, it's not 'official'. :)
[...]
> --- a/testcases/kernel/syscalls/fstatat/fstatat01.c
> +++ b/testcases/kernel/syscalls/fstatat/fstatat01.c
> @@ -59,6 +59,7 @@ static const char *filenames[TEST_CASES];
> static const int expected_errno[] = { 0, 0, ENOTDIR, EBADF, EINVAL, 0 };
> static const int flags[] = { 0, 0, 0, 0, 9999, 0 };
>
> +#define HAVE_FSTATAT
> #if !defined(HAVE_FSTATAT)
> #if (__NR_fstatat64 > 0)
> int fstatat(int dirfd, const char *filename, struct stat64 *statbuf, int flags)
> diff --git a/testcases/kernel/syscalls/preadv/preadv.h b/testcases/kernel/syscalls/preadv/preadv.h
> index f3ac30d..b001389 100644
> --- a/testcases/kernel/syscalls/preadv/preadv.h
> +++ b/testcases/kernel/syscalls/preadv/preadv.h
> @@ -21,6 +21,7 @@
> #include "config.h"
> #include "linux_syscall_numbers.h"
>
> +#define HAVE_PREADV
> #if !defined(HAVE_PREADV)
> int preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset)
> {
> diff --git a/testcases/kernel/syscalls/pwritev/pwritev.h b/testcases/kernel/syscalls/pwritev/pwritev.h
> index ae9d999..2a4d188 100644
> --- a/testcases/kernel/syscalls/pwritev/pwritev.h
> +++ b/testcases/kernel/syscalls/pwritev/pwritev.h
> @@ -21,6 +21,7 @@
> #include "config.h"
> #include "linux_syscall_numbers.h"
>
> +#define HAVE_PWRITEV
> #if !defined(HAVE_PWRITEV)
> int pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset)
> {
I didn't need any of these defines as they are automatically generated
in include/config.h for AArch32. However, I need to run autoreconf to
generate the configure script prior to building (archlinuxarm
filesystem)
--
Catalin
More information about the linux-arm-kernel
mailing list