All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel function having physical address. how?
@ 2007-10-23 10:22 Barisa Kisku
  2007-10-23 18:51 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: Barisa Kisku @ 2007-10-23 10:22 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

hi,

I have  ported linux-2.6.20 in cutom board based on MPC860.Kernel with the
KERNELBASE as default 0xc00000000.
uImage is downloaded at some address and booted with "bootm"
command.Kernelis uncompressed and  loaded at
0x00000000.All  the kernel function is now having physical address  (e.g.
0x000020c8 instead of 0xc00020c8, which
is given by compiler).I think this required, to run kernel before MMU is on,
but how  this change in assembled code happens.
Does u-boot do this when uncompressing and loading the kernel. Please
comment.

thanks in advance.

Barisa

[-- Attachment #2: Type: text/html, Size: 694 bytes --]

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

* Re: Kernel function having physical address. how?
  2007-10-23 10:22 Kernel function having physical address. how? Barisa Kisku
@ 2007-10-23 18:51 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2007-10-23 18:51 UTC (permalink / raw)
  To: Barisa Kisku; +Cc: linuxppc-embedded

Barisa Kisku wrote:
> I have  ported linux-2.6.20 in cutom board based on MPC860.Kernel
> with the KERNELBASE as default 0xc00000000. uImage is downloaded at
> some address and booted with "bootm" command.Kernel is uncompressed
> and  loaded at 0x00000000.All  the kernel function is now having
> physical address (e.g.  0x000020c8 instead of 0xc00020c8, which is
> given by compiler).I think this required, to run kernel before MMU is
>  on, but how  this change in assembled code happens.

There is no change in the code itself -- the kernel is merely careful to 
avoid (or fix up) data references before the MMU is turned on (which 
happens quite early).

> Does u-boot do
> this when uncompressing and loading the kernel.

No.

-Scott

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

end of thread, other threads:[~2007-10-23 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-23 10:22 Kernel function having physical address. how? Barisa Kisku
2007-10-23 18:51 ` Scott Wood

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.