Thread (3 messages) 3 messages, 2 authors, 2014-01-21

How update happen for pt_regs

From: naveen yadav <hidden>
Date: 2014-01-21 09:25:14

Actual show_regs() needs pt_regs  structure initialization, which
normally happen in traps or fault code.
So how we initialize pt_regs ?



On Tue, Jan 21, 2014 at 2:42 PM, manty kuma [off-list ref] wrote:
Hi,

#include <inux/sched.h>
....
init_func()
{
..
..
show_regs();
}
Did you try including sched.h and calling show_regs() ?

Regards,
Manty

On Tue, Jan 21, 2014 at 5:49 PM, naveen yadav [off-list ref] wrote:
quoted
Dear All,

I want to dump ARM registers, show_regs(regs) in spin_dump() function.

But show_regs get called only from traps or fault code. Any idea how
we can do in normal scenario ?

Also I check code pt_regs got updated in  entry-armv.S, If any body
have more idea how it is done.



Thanks

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help