All of lore.kernel.org
 help / color / mirror / Atom feed
* port on exotic board.
@ 2004-12-21  8:53 moreau francis
  2004-12-22  1:27 ` Jun Sun
  0 siblings, 1 reply; 8+ messages in thread
From: moreau francis @ 2004-12-21  8:53 UTC (permalink / raw)
  To: linux-mips

Hi,

Well, I'm still trying to port Linux on my "exotic"
board...
I hope you don't mind if I ask a couple of questions,
which may be stupid for you but usefull at my level. 
If you think that linux-mips mailing list is not 
intended for these kind of questions, tell me !

So here I am:

I've mapped kernel code and kernel data in different
memories in order to save precious SDRAM memory.

Code    0xC0000000    0x30000000     16Mo    FLASH
Data    0xC1000000    0x20000000      8Mo    SDRAM

When running the kernel at the very begining, I
encounter different issues:

In "tlb_init" function, cp0 WIRED register is set to
zero, therefore the call to "local_flush_tlb_all" 
flush all TLB entries which were mapping my kernel
in the 3 first entries. Why is this necessary ?  

In different part of the kernel it is assumed that the
kernel start at physical addr 0. For instance in
"init_bootmem" fonction, argument start is set to 0.
Or the way to calculate a page frame index in mem_map
array. Why this assumption ?

Why does "mem_map" need to store page frames for
kernel
code ? Are these pages going be used when the Linux is
running ?

I noticed CPHYSADDR macro. This macro only works if
PAGE_OFFSET is equal to 0x80000000. Why does this 
macro exist ? Why not using __pa macro ?


Thanks for your answers.

   Francis.


	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

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

end of thread, other threads:[~2004-12-22 11:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21  8:53 port on exotic board moreau francis
2004-12-22  1:27 ` Jun Sun
2004-12-22  2:07   ` Ilya A. Volynets-Evenbakh
2004-12-22 10:00     ` moreau francis
2004-12-22  5:36   ` Manish Lachwani
2004-12-22 10:04     ` moreau francis
2004-12-22  9:55   ` moreau francis
2004-12-22 10:35     ` Stanislaw Skowronek

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.