From: Thomas Koeller <thomas.koeller@baslerweb.com>
To: "Linux/MIPS Development" <linux-mips@linux-mips.org>
Cc: Manish Lachwani <mlachwani@mvista.com>
Subject: jump instruction in delay slot
Date: Tue, 19 Oct 2004 16:05:47 +0200 [thread overview]
Message-ID: <200410191605.47543.thomas.koeller@baslerweb.com> (raw)
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
==============================
next reply other threads:[~2004-10-19 14:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 14:05 Thomas Koeller [this message]
2004-10-19 14:25 ` jump instruction in delay slot Thiemo Seufer
[not found] ` <000901c4b5e8$70141160$10eca8c0@grendel>
2004-10-19 15:48 ` Thomas Koeller
2004-10-19 17:06 ` Ralf Baechle
[not found] <B482D8AA59BF244F99AFE7520D74BF961A5B71@server1.RightHand.righthandtech.com>
2004-10-19 17:00 ` Thomas Koeller
2004-10-19 17:02 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200410191605.47543.thomas.koeller@baslerweb.com \
--to=thomas.koeller@baslerweb.com \
--cc=linux-mips@linux-mips.org \
--cc=mlachwani@mvista.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.