Linux MIPS Architecture development
 help / color / mirror / Atom feed
* jump instruction in delay slot
@ 2004-10-19 14:05 Thomas Koeller
  2004-10-19 14:25 ` Thiemo Seufer
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Thomas Koeller @ 2004-10-19 14:05 UTC (permalink / raw)
  To: Linux/MIPS Development; +Cc: Manish Lachwani

Hi,

the following code snippet is from
arch/mips/pmc-sierra/yosemite/irq-handler.S:

ll_duart_irq:
		li	a0, 4
		move	a1, sp
		jal	do_IRQ
		j	ret_from_irq

I wonder if this is correct. AFAIK, a jump instruction
must not occupy the delay slot of another branch or
jump instruction. Since the 'jal' returns to the first
instruction after the delay slot, I would expect the
effect of the 'j' instruction to be cancelled. Or
is this some kind of trick I do not understand?

tk

-- 
--------------------------------------------------

Thomas Koeller, Software Development
Basler Vision Technologies

thomas dot koeller at baslerweb dot com
http://www.baslerweb.com

==============================

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-19 17:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <B482D8AA59BF244F99AFE7520D74BF961A5B71@server1.RightHand.righthandtech.com>
2004-10-19 17:00 ` jump instruction in delay slot Thomas Koeller
2004-10-19 17:02   ` Ralf Baechle
2004-10-19 14:05 Thomas Koeller
2004-10-19 14:25 ` Thiemo Seufer
     [not found] ` <000901c4b5e8$70141160$10eca8c0@grendel>
2004-10-19 15:48   ` Thomas Koeller
2004-10-19 17:06 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox