linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* KERNELBASE and MMU
@ 2001-01-16 17:31 Borlizzi Giacomo
  2001-01-16 22:16 ` Dan Malek
  0 siblings, 1 reply; 4+ messages in thread
From: Borlizzi Giacomo @ 2001-01-16 17:31 UTC (permalink / raw)
  To: linuxppc-embedded@lists.linuxppc.org, Giacomo Borlizzi (TEI)


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/

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

end of thread, other threads:[~2001-01-17 18:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-16 17:31 KERNELBASE and MMU Borlizzi Giacomo
2001-01-16 22:16 ` Dan Malek
2001-01-17 18:31   ` Borlizzi Giacomo
2001-01-17 18:54     ` Dan Malek

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).