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

* Re: KERNELBASE and MMU
  2001-01-16 17:31 KERNELBASE and MMU Borlizzi Giacomo
@ 2001-01-16 22:16 ` Dan Malek
  2001-01-17 18:31   ` Borlizzi Giacomo
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Malek @ 2001-01-16 22:16 UTC (permalink / raw)
  To: Borlizzi Giacomo; +Cc: linuxppc-embedded@lists.linuxppc.org


Borlizzi Giacomo wrote:

> My configuration foreseen  KERNELBASE set to 0x00000000 instead of
> 0xC0000000

I don't really understand, but you should not be changing anything
in the source code or Makefiles or configuration files that affect
the MMU or virtual address mapping.


	-- Dan

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

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

* Re: KERNELBASE and MMU
  2001-01-16 22:16 ` Dan Malek
@ 2001-01-17 18:31   ` Borlizzi Giacomo
  2001-01-17 18:54     ` Dan Malek
  0 siblings, 1 reply; 4+ messages in thread
From: Borlizzi Giacomo @ 2001-01-17 18:31 UTC (permalink / raw)
  To: Dan Malek; +Cc: linuxppc-embedded@lists.linuxppc.org, Giacomo Borlizzi (TEI)


Does you say that linux code is not PIC? (position indipendent code)
Why such constraint on physical memory area? It don't make some
limitation on portability of code?
/Giacomo Borlizzi



Dan Malek wrote:

> Borlizzi Giacomo wrote:
>
> > My configuration foreseen  KERNELBASE set to 0x00000000 instead of
> > 0xC0000000
>
> I don't really understand, but you should not be changing anything
> in the source code or Makefiles or configuration files that affect
> the MMU or virtual address mapping.
>
>         -- Dan


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

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

* Re: KERNELBASE and MMU
  2001-01-17 18:31   ` Borlizzi Giacomo
@ 2001-01-17 18:54     ` Dan Malek
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Malek @ 2001-01-17 18:54 UTC (permalink / raw)
  To: Borlizzi Giacomo; +Cc: linuxppc-embedded@lists.linuxppc.org


Borlizzi Giacomo wrote:
>
> Does you say that linux code is not PIC? (position indipendent code)

No it is not.  You can move it around a little if you _really_
understand the details.  For any PowerPC processor there is no
reason to change the location regardless of the system implementation.

> Why such constraint on physical memory area? It don't make some
> limitation on portability of code?

No portability problem.  This code runs on more processors and
boards more easily than anything else in the world.


	-- Dan

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