Understanding disassembly x86 + understanding function call + parameter pass and stack frame
amit mehta
gmate.amit at gmail.com
Mon Aug 12 11:07:13 EDT 2013
On Mon, Aug 12, 2013 at 5:28 PM, nidhi mittal hada
<nidhimittal19 at gmail.com> wrote:
> Questions:-
> 1)Which memory address in stack contains struct super_block *s
> 2)how does disassembly helps in knowing which register contain the struct
> super_block *s
> 3)bt -f gives highlighted above, register dump at the end, does that help in
> finding this information ???
Have you *actually* spent your time on reading the AMD 64ABI [1] ?
Also there is a very nice and concise document available on x86_64
assembly [2]. While trying to analyse kernel crash dump using 'crash',
utility you might want to refer this page [1] and this blog [4] as well.
[1] http://www.uclibc.org/docs/psABI-x86_64.pdf
[2] www.cs.cmu.edu/~fp/courses/15213-s07/misc/asm64-handout.pdf
[3] http://people.redhat.com/~anderson/
[4] http://www.sungju.org/?p=1166
!!amit
More information about the Kernelnewbies
mailing list