Re: [PATCH 04/28] nios2: Exception handling

2014-04-23 Thread Ley Foon Tan
On Wed, Apr 23, 2014 at 8:23 PM, Arnd Bergmann wrote: >> >> We really shouldn't be doing new architecture specific procfs files >> >> any more. I suggest you drop this one for now, and add back the >> >> functionality using perf or ftrace at a later point. >> > >> > Okay, will remove this. >> >>

Re: [PATCH 04/28] nios2: Exception handling

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014, Geert Uytterhoeven wrote: > On Wed, Apr 23, 2014 at 4:47 AM, Ley Foon Tan wrote: > > On Tue, Apr 22, 2014 at 8:33 PM, Arnd Bergmann wrote: > >> On Friday 18 April 2014, Ley Foon Tan wrote: > >>> +static const struct file_operations misalign_fops = { > >>> + .open

Re: [PATCH 04/28] nios2: Exception handling

2014-04-23 Thread Geert Uytterhoeven
Hi Ley, On Wed, Apr 23, 2014 at 4:47 AM, Ley Foon Tan wrote: > On Tue, Apr 22, 2014 at 8:33 PM, Arnd Bergmann wrote: >> On Friday 18 April 2014, Ley Foon Tan wrote: >>> +static const struct file_operations misalign_fops = { >>> + .open = proc_misaligned_open, >>> + .read

Re: [PATCH 04/28] nios2: Exception handling

2014-04-22 Thread Ley Foon Tan
On Tue, Apr 22, 2014 at 8:33 PM, Arnd Bergmann wrote: > On Friday 18 April 2014, Ley Foon Tan wrote: >> +static const struct file_operations misalign_fops = { >> + .open = proc_misaligned_open, >> + .read = seq_read, >> + .llseek = seq_lseek, >> +

Re: [PATCH 04/28] nios2: Exception handling

2014-04-22 Thread Arnd Bergmann
On Friday 18 April 2014, Ley Foon Tan wrote: > +static const struct file_operations misalign_fops = { > + .open = proc_misaligned_open, > + .read = seq_read, > + .llseek = seq_lseek, > + .release= single_release, > + .write

Re: [PATCH 04/28] nios2: Exception handling

2014-04-22 Thread Ley Foon Tan
On Tue, Apr 22, 2014 at 6:57 PM, Ezequiel Garcia wrote: > Hi Ley Foon, > > Are you sure this is correct? Have you tested this works correctly? > > Last time I tested this, it caused the traced_system_call to be taken > for every system call. I already reported and provided a patch a few > months a

Re: [PATCH 04/28] nios2: Exception handling

2014-04-22 Thread Ezequiel Garcia
Hi Ley Foon, On Apr 18, Ley Foon Tan wrote: > + > + /* Get thread info pointer */ > + movir11, %lo(0xf000) > + and r11, sp, r11 > + ldw r11, TI_FLAGS(r11) > + > + /* If someone is ptrace:ing us, take the long way. */ > + BTBNZ r11, r11, TIF_SYSCALL_TRACE,

[PATCH 04/28] nios2: Exception handling

2014-04-18 Thread Ley Foon Tan
This patch contains the exception entry code (kernel/entry.S) and misaligned exception. Signed-off-by: Ley Foon Tan --- arch/nios2/kernel/entry.S | 551 + arch/nios2/kernel/misaligned.c | 319 2 files changed, 870 insertions(