linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Borlizzi Giacomo <giacomo.borlizzi@tei.ericsson.se>
To: "linuxppc-embedded@lists.linuxppc.org"
	<linuxppc-embedded@lists.linuxppc.org>,
	"Giacomo Borlizzi (TEI)" <giacomo.borlizzi@tei.ericsson.se>
Subject: KERNELBASE and MMU
Date: Tue, 16 Jan 2001 18:31:17 +0100	[thread overview]
Message-ID: <3A648564.671DDDD5@tei.ericsson.se> (raw)


Hi,
I'm changing the operating system for my powerpc 860 board from
linux-2.2.13 to linux-2.4.0-test9.
With 2.2.13 version I have running the kernel and obtained the prompt of
sash .....
On 2.4 version it don't work instead.
My configuration foreseen  KERNELBASE set to 0x00000000 instead of
0xC0000000
this configuration seems be not  compatible with MMU initialization
code.
And infact during the execution of setup_arch() when the function
va_to_pte() is called
the  "mm = current->mm;" statment is executed (I report here some code)

pte_t *va_to_pte(unsigned long address)
{
 pgd_t *dir;
 pmd_t *pmd;
 pte_t *pte;
 struct mm_struct *mm;

 if (address < TASK_SIZE)           /* TASK_SIZE is 0x80000000 */
  mm = current->mm;                      <---this statment is executed
!!!
 else
  mm = &init_mm;

 dir = pgd_offset(mm, address & PAGE_MASK);
.......
.....

but at this moment "current" is not initialized????
on the 2.2.13 instead the function was have two parameters...

That is a big change... where I can found information on use of MMU on
860
and on means of those  data structures?

Thanks you in advanced and sorry for my bad English
/Giacomo Borlizzi


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2001-01-16 17:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-16 17:31 Borlizzi Giacomo [this message]
2001-01-16 22:16 ` KERNELBASE and MMU Dan Malek
2001-01-17 18:31   ` Borlizzi Giacomo
2001-01-17 18:54     ` Dan Malek

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=3A648564.671DDDD5@tei.ericsson.se \
    --to=giacomo.borlizzi@tei.ericsson.se \
    --cc=linuxppc-embedded@lists.linuxppc.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 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).