linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: "Siva Prasad" <sprasad@bivio.net>
Cc: linuxppc-embedded@ozlabs.org, linuxppc-dev@ozlabs.org
Subject: RE: PTE entries
Date: Thu, 3 May 2007 08:03:25 +1000	[thread overview]
Message-ID: <17977.2733.78406.322755@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <D83235F0F3C86D4D889D8B9A0DA8C6D762D0F8@corpexc01.corp.networkrobots.com>

Siva Prasad writes:

> Are there any other places where we have self modifying code in Linux
> kernel, other than in arch/powerpc/mm/ppc_mmu_32.c:MMU_init_hw()
> (basically modified create_hpte and flush_hash_page)

Yes, the cpu feature stuff writes nops over various bits of code
depending on what cpu you're running on.  See do_feature_fixups() in
arch/powerpc/kernel/cputable.c.

> Instead of using addis, why can't we move it from SDR1 register and mask
> the second half. SDR1 has the required value. Right?
> May be I am missing something here.

mtspr is slow on most processors, certainly slower than addis.

Paul.

  reply	other threads:[~2007-05-02 22:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-20  4:34 PTE entries Siva Prasad
2007-04-24  1:05 ` Benjamin Herrenschmidt
2007-04-25  3:34   ` Siva Prasad
2007-04-25  3:50     ` Benjamin Herrenschmidt
2007-05-02 19:58       ` Siva Prasad
2007-05-02 22:03         ` Paul Mackerras [this message]
2007-05-02 22:12         ` Benjamin Herrenschmidt

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=17977.2733.78406.322755@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=sprasad@bivio.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).