[patch] MIPS64: Use non-trapping "daddu" in macro expansions

Maciej W. Rozycki macro@ds2.pg.gda.pl
Wed Jul 10 07:19:00 GMT 2002


On Wed, 10 Jul 2002, Ralf Baechle wrote:

> >  I believe it's incorrect to use "dadd" to calculate addresses as we don't
> > handle overflow traps in any manner.  That is strictly system-dependent
> > and should be handled at the compiler level, anyway.  I propose switching
> > to "daddu".
> 
> The rationale behind this was to trap wraparounds of address between kernel
> space and user space.

 If an incorrect address is dereferenced afterwards in the user mode, it
will fault anyway.  For the kernel mode, I don't think such actions should
be coded implicitly. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +



More information about the Binutils mailing list