Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-13 Thread Palmer Dabbelt
On Wed, 12 Jul 2017 10:09:55 PDT (-0700), james.ho...@imgtec.com wrote: > On Wed, Jul 12, 2017 at 09:24:24AM -0700, Palmer Dabbelt wrote: >> On Wed, 12 Jul 2017 04:07:51 PDT (-0700), james.ho...@imgtec.com wrote: >> > On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: >> >> diff --git

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-13 Thread Palmer Dabbelt
On Wed, 12 Jul 2017 10:09:55 PDT (-0700), james.ho...@imgtec.com wrote: > On Wed, Jul 12, 2017 at 09:24:24AM -0700, Palmer Dabbelt wrote: >> On Wed, 12 Jul 2017 04:07:51 PDT (-0700), james.ho...@imgtec.com wrote: >> > On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: >> >> diff --git

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-12 Thread James Hogan
On Wed, Jul 12, 2017 at 09:24:24AM -0700, Palmer Dabbelt wrote: > On Wed, 12 Jul 2017 04:07:51 PDT (-0700), james.ho...@imgtec.com wrote: > > On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: > >> diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c > >> new file mode

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-12 Thread James Hogan
On Wed, Jul 12, 2017 at 09:24:24AM -0700, Palmer Dabbelt wrote: > On Wed, 12 Jul 2017 04:07:51 PDT (-0700), james.ho...@imgtec.com wrote: > > On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: > >> diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c > >> new file mode

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-12 Thread Palmer Dabbelt
On Wed, 12 Jul 2017 04:07:51 PDT (-0700), james.ho...@imgtec.com wrote: > On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: >> diff --git a/arch/riscv/include/asm/unistd.h >> b/arch/riscv/include/asm/unistd.h >> new file mode 100644 >> index ..9f250ed007cd >> ---

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-12 Thread Palmer Dabbelt
On Wed, 12 Jul 2017 04:07:51 PDT (-0700), james.ho...@imgtec.com wrote: > On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: >> diff --git a/arch/riscv/include/asm/unistd.h >> b/arch/riscv/include/asm/unistd.h >> new file mode 100644 >> index ..9f250ed007cd >> ---

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-12 Thread James Hogan
On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: > diff --git a/arch/riscv/include/asm/unistd.h b/arch/riscv/include/asm/unistd.h > new file mode 100644 > index ..9f250ed007cd > --- /dev/null > +++ b/arch/riscv/include/asm/unistd.h > @@ -0,0 +1,16 @@ > +/* > + *

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-12 Thread James Hogan
On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: > diff --git a/arch/riscv/include/asm/unistd.h b/arch/riscv/include/asm/unistd.h > new file mode 100644 > index ..9f250ed007cd > --- /dev/null > +++ b/arch/riscv/include/asm/unistd.h > @@ -0,0 +1,16 @@ > +/* > + *

[PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread Palmer Dabbelt
This patch contains code that is in some way visible to the user: including via system calls, the VDSO, module loading and signal handling. It also contains some generic code that is ABI visible. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/mmu.h |

[PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread Palmer Dabbelt
This patch contains code that is in some way visible to the user: including via system calls, the VDSO, module loading and signal handling. It also contains some generic code that is ABI visible. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/mmu.h | 26 +++

Re: [patches] Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread Palmer Dabbelt
On Tue, 11 Jul 2017 07:01:32 PDT (-0700), james.ho...@imgtec.com wrote: > Hi Christoph, > > On Tue, Jul 11, 2017 at 06:39:48AM -0700, Christoph Hellwig wrote: >> > +#ifdef CONFIG_64BIT >> > +SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, >> > + unsigned long, prot, unsigned long,

Re: [patches] Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread Palmer Dabbelt
On Tue, 11 Jul 2017 07:01:32 PDT (-0700), james.ho...@imgtec.com wrote: > Hi Christoph, > > On Tue, Jul 11, 2017 at 06:39:48AM -0700, Christoph Hellwig wrote: >> > +#ifdef CONFIG_64BIT >> > +SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, >> > + unsigned long, prot, unsigned long,

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread James Hogan
Hi Christoph, On Tue, Jul 11, 2017 at 06:39:48AM -0700, Christoph Hellwig wrote: > > +#ifdef CONFIG_64BIT > > +SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, > > + unsigned long, prot, unsigned long, flags, > > + unsigned long, fd, off_t, offset) > > +{ > > + if

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread James Hogan
Hi Christoph, On Tue, Jul 11, 2017 at 06:39:48AM -0700, Christoph Hellwig wrote: > > +#ifdef CONFIG_64BIT > > +SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, > > + unsigned long, prot, unsigned long, flags, > > + unsigned long, fd, off_t, offset) > > +{ > > + if

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread Christoph Hellwig
> +++ b/arch/riscv/kernel/sys_riscv.c > @@ -0,0 +1,43 @@ > +/* > + * Copyright (C) 2012 Regents of the University of California > + * Copyright (C) 2014 Darius Rad > + * Copyright (C) 2017 SiFive > + * > + * This program is free software; you can redistribute it and/or > +

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread Christoph Hellwig
> +++ b/arch/riscv/kernel/sys_riscv.c > @@ -0,0 +1,43 @@ > +/* > + * Copyright (C) 2012 Regents of the University of California > + * Copyright (C) 2014 Darius Rad > + * Copyright (C) 2017 SiFive > + * > + * This program is free software; you can redistribute it and/or > + * modify it under

[PATCH 16/17] RISC-V: User-facing API

2017-07-10 Thread Palmer Dabbelt
This patch contains code that is in some way visible to the user: including via system calls, the VDSO, module loading and signal handling. It also contains some generic code that is ABI visible. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/mmu.h |

[PATCH 16/17] RISC-V: User-facing API

2017-07-10 Thread Palmer Dabbelt
This patch contains code that is in some way visible to the user: including via system calls, the VDSO, module loading and signal handling. It also contains some generic code that is ABI visible. Signed-off-by: Palmer Dabbelt --- arch/riscv/include/asm/mmu.h | 26 +++