All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Ungerer <gerg@snapgear.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: linux-m68k@vger.kernel.org, uclinux-dev@uclinux.org,
	Greg Ungerer <gerg@uclinux.org>
Subject: Re: [PATCH 1/3] m68k: consistently call ret_from_exception in entry code
Date: Wed, 16 May 2012 13:38:51 +1000	[thread overview]
Message-ID: <4FB3214B.8030901@snapgear.com> (raw)
In-Reply-To: <m21uml6enz.fsf@igel.home>


Hi Andreas,

On 15/05/12 18:18, Andreas Schwab wrote:
> <gerg@snapgear.com>  writes:
>
>> The ret_from_excption code is referenced by its function name, or by a label
>> set at the start of its code. Modify all uses to consistently just use the
>> function name "ret_from_exception".
>
> This will cause all branches to use the long variant, because
> ret_from_exception is a global symbol (and thus overridable in the ELF
> model).  The point of the additional local label is to allow the
> assembler to relax the branches.

Ah, ok. I was wondering why it was done this way.

The only problem cases for me in merging entry.S are the uses in:

     buserr
     trap
     ret_from_fork

buserr and trap are not hot paths, so do you see any issue making
them the long variant?

I don't know that even the ret_from_fork case is too much to worry
about either. We have done an awfull lot of work up to this point,
a couple of bytes more and a long branch won't make any real difference
to performance here.

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

  reply	other threads:[~2012-05-16  3:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15  6:55 [PATCH 00/03] m68k: clean up and merge MMU and non-MMU versions of entry.S gerg
2012-05-15  6:55 ` [PATCH 1/3] m68k: consistently call ret_from_exception in entry code gerg
2012-05-15  8:18   ` Andreas Schwab
2012-05-16  3:38     ` Greg Ungerer [this message]
2012-05-15  6:55 ` [PATCH 2/3] m68k: use jbsr to call functions instead of bsrl gerg
2012-05-15  6:55 ` [PATCH 3/3] m68k: merge the MMU and non-MMU versions of the entry.S code gerg

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=4FB3214B.8030901@snapgear.com \
    --to=gerg@snapgear.com \
    --cc=gerg@uclinux.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=schwab@linux-m68k.org \
    --cc=uclinux-dev@uclinux.org \
    /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.