linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mips unaligned.c bugfix
@ 2002-09-27 16:26 D.J. Barrow
  0 siblings, 0 replies; only message in thread
From: D.J. Barrow @ 2002-09-27 16:26 UTC (permalink / raw)
  To: Kernel Mailing List, Ralf Baechle

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

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

[-- Attachment #2: unaligned.diff --]
[-- Type: application/x-unknown, Size: 5536 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-27 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-27 16:26 mips unaligned.c bugfix D.J. Barrow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).