Query - backup of User Mode regs on segfault

Indraneel Mukherjee <[email protected]>
Newsgroups gmane.linux.ports.arm.general
Message-ID <[email protected]>
Hi,
I'm studying the code of how the kernel handles a User Space segfault.
Couple of questions on that:

1. What is the 1st kernel instruction that gets executed when the hardware
detects a segfault? Is it __dabt_usr: in arch/arm/kernel/entry-armv.S  OR
does s'thing happen before that also?

2. Are the User Space regs always backed up on top of the stack OR is the
location arbitrary on the stack?

3. Is the member thread_info->cpu_context used for User Space regs backup
anytime?

4. In pt_regs what is the ARM_ORIG_R0 member?

TIA,
Indro
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.