mips unaligned.c bugfix

From: D.J. Barrow (barrow_dj@yahoo.com)
Date: Fri Sep 27 2002 - 11:26:01 EST


Hi Ralf & others,

I found & fixed kernel bug in unaligned.c which was affecting the iptables code
in little mips32 endian.

The patch is against 2.4.17 on oss.sgi.com & should hopefully apply to the latest
kernel.

The fixes code for I did mips 64 is untested, I had no way to test them unfortunately.

An example of the bug is the bug following sequence of mips instructions
beqz v0,<destaddr>
lw v0,(t3)

say reg t3 points to an unaligned address

In the emulation the v0 register was being loaded & modified before
the computation of the destination address ( which depended on v0 )
this was incorrect so I had to save the updating of the v0 register
until the computation of the destination address was done.

=====
D.J. Barrow Linux kernel developer
eMail: dj_barrow@ariasoft.ie
Home: +353-22-47196.
Work: +353-91-758353

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:32 EST