This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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        +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]