Re: Use of the PC value in interrupt/exception handlers

2013-08-06 Thread David Laight
On Fri, Aug 02, 2013 at 10:46:31AM +, Piyus Kedia wrote: Dear all, We are working on developing a dynamic binary translator for the kernel. Towards this, we wanted to confirm if the interrupted PC value pushed on stack by an interrupt/exception is used by the interrupt/exception

Use of the PC value in interrupt/exception handlers

2013-08-02 Thread Piyus Kedia
Dear all, We are working on developing a dynamic binary translator for the kernel. Towards this, we wanted to confirm if the interrupted PC value pushed on stack by an interrupt/exception is used by the interrupt/exception handlers? For example, is the PC value compared against a fixed address to

Re: Use of the PC value in interrupt/exception handlers

2013-08-02 Thread Martin Husemann
On Fri, Aug 02, 2013 at 10:46:31AM +, Piyus Kedia wrote: Dear all, We are working on developing a dynamic binary translator for the kernel. Towards this, we wanted to confirm if the interrupted PC value pushed on stack by an interrupt/exception is used by the interrupt/exception

Re: Use of the PC value in interrupt/exception handlers

2013-08-02 Thread Matt Thomas
On Aug 2, 2013, at 4:43 AM, Martin Husemann mar...@duskware.de wrote: On Fri, Aug 02, 2013 at 10:46:31AM +, Piyus Kedia wrote: Dear all, We are working on developing a dynamic binary translator for the kernel. Towards this, we wanted to confirm if the interrupted PC value pushed on

Re: Use of the PC value in interrupt/exception handlers

2013-08-02 Thread Johnny Billquist
On 2013-08-02 12:46, Piyus Kedia wrote: Dear all, We are working on developing a dynamic binary translator for the kernel. Towards this, we wanted to confirm if the interrupted PC value pushed on stack by an interrupt/exception is used by the interrupt/exception handlers? For example, is the PC

Re: Use of the PC value in interrupt/exception handlers

2013-08-02 Thread Piyus Kedia
Hi, I can see a system call sys_rasctl which install a RAS area. So I assume that the RAS PC's will be only user PC's and the cpu_switchto will modify the user PC if it is interrupted in the middle of a RAS. Thanks, Piyus On Sat, Aug 3, 2013 at 1:12 AM, Matt Thomas m...@3am-software.com

Re: Use of the PC value in interrupt/exception handlers

2013-08-02 Thread Matt Thomas
On Aug 2, 2013, at 9:41 AM, Piyus Kedia piyuske...@gmail.com wrote: Hi, I can see a system call sys_rasctl which install a RAS area. So I assume that the RAS PC's will be only user PC's and the cpu_switchto will modify the user PC if it is interrupted in the middle of a RAS. No. Some

Re: Use of the PC value in interrupt/exception handlers

2013-08-02 Thread Piyus Kedia
Thanks. On Sat, Aug 3, 2013 at 1:44 AM, Matt Thomas m...@3am-software.com wrote: On Aug 2, 2013, at 9:41 AM, Piyus Kedia piyuske...@gmail.com wrote: Hi, I can see a system call sys_rasctl which install a RAS area. So I assume that the RAS PC's will be only user PC's and the