Re: [PATCH v2 07/31] arm64: Process management

2012-09-15 Thread Olof Johansson
On Fri, Sep 14, 2012 at 06:33:52PM +0100, Catalin Marinas wrote: > On Wed, Aug 15, 2012 at 12:50:13AM +0100, Olof Johansson wrote: > > On Tue, Aug 14, 2012 at 06:52:08PM +0100, Catalin Marinas wrote: > > > > > diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c > > > new file mo

Re: [PATCH v2 07/31] arm64: Process management

2012-09-14 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 12:50:13AM +0100, Olof Johansson wrote: > On Tue, Aug 14, 2012 at 06:52:08PM +0100, Catalin Marinas wrote: > > > diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c > > new file mode 100644 > > index 000..c4a4e1c > > --- /dev/null > > +++ b/arch/arm64

Re: [PATCH v2 07/31] arm64: Process management

2012-08-17 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 02:53:01PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > > +#define THREAD_SIZE_ORDER 1 > > +#define THREAD_SIZE8192 > > +#define THREAD_START_SP(THREAD_SIZE - 16) > > THREAD_SIZE_ORDER looks wrong for 64kb

Re: [PATCH v2 07/31] arm64: Process management

2012-08-16 Thread Tobias Klauser
On 2012-08-14 at 19:52:08 +0200, Catalin Marinas wrote: > +void cpu_idle(void) > +{ > + local_fiq_enable(); > + > + /* endless idle loop with no priority at all */ > + while (1) { > + tick_nohz_idle_enter(); > + rcu_idle_enter(); > + while (!need_re

Re: [PATCH v2 07/31] arm64: Process management

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > +#define THREAD_SIZE_ORDER1 > +#define THREAD_SIZE 8192 > +#define THREAD_START_SP (THREAD_SIZE - 16) THREAD_SIZE_ORDER looks wrong for 64kb-page kernels. It also doesn't seem to be used, so better remove it. A

Re: [PATCH v2 07/31] arm64: Process management

2012-08-14 Thread Olof Johansson
Hi, On Tue, Aug 14, 2012 at 06:52:08PM +0100, Catalin Marinas wrote: > diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c > new file mode 100644 > index 000..c4a4e1c > --- /dev/null > +++ b/arch/arm64/kernel/process.c > @@ -0,0 +1,416 @@ [...] > +/* > + * Function pointer

[PATCH v2 07/31] arm64: Process management

2012-08-14 Thread Catalin Marinas
The patch adds support for thread creation and context switching. The context switching CPU specific code is introduced with the CPU support patch (part of the arch/arm64/mm/proc.S file). AArch64 supports ASID-tagged TLBs and the ASID can be either 8 or 16-bit wide (detectable via the ID_AA64AFR0_E