Thread (3 messages) 3 messages, 3 authors, 1999-01-26

Re: Help from Kernel Gurus needed!!!

From: Geert Uytterhoeven <hidden>
Date: 1999-01-25 21:27:43

Possibly related (same subject, not in this thread)

On Mon, 25 Jan 1999, David Edelsohn wrote:
	If you are just trying to copy r1 into r0, why not use move
regsiter instead of add immediate as the following:

	__asm__ ("mr %0,1" : "=r" (p) : );
Hehe, the clue is that IBM/Motorola didn't implement instructions that perform
operations that can be done in a different manner, too.

`mr' is just an alias for add with zero.

Greetings,

						Geert

--
Geert Uytterhoeven                     Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}  http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium


[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help