2009-07-30 08:37:19

by peter meng

[permalink] [raw]
Subject: Ask a question about kfree_skbmem and disassemble


Hi

I'm not be familiar with assemble .
I want to know how to explain follow .

80195170: 00808021 move s0,a0
80195174: 3c028029 lui v0,0x8029
80195178: 8c44db90 lw a0,-9328(v0)
8019517c: 02002821 move a1,s0

------source code and it's assemble---------------
void kfree_skbmem(struct sk_buff *skb)
{
skb_release_data(skb);
kmem_cache_free(skbuff_head_cache, skb);
}


80195160 <kfree_skbmem>:
80195160: 27bdffe8 addiu sp,sp,-24
80195164: afbf0014 sw ra,20(sp)
80195168: afb00010 sw s0,16(sp)
8019516c: 0c0654bd jal 801952f4 <skb_release_data>
80195170: 00808021 move s0,a0
80195174: 3c028029 lui v0,0x8029
80195178: 8c44db90 lw a0,-9328(v0)
8019517c: 02002821 move a1,s0
80195180: 8fbf0014 lw ra,20(sp)
80195184: 8fb00010 lw s0,16(sp)
80195188: 0802c86a j 800b21a8 <kmem_cache_free>
8019518c: 27bd0018 addiu sp,sp,24
------------------------------------------------------


Thanks a lot
Best Regards.
Peter Meng