lkml.org 
[lkml]   [2002]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectmips unaligned.c bugfix
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[unhandled content-type:application/x-unknown]
\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.031 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site