linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* What does KERNELBASE mean?
@ 2000-01-05  4:58 LiuTao
  2000-01-05  5:07 ` Alan Mimms
  2000-01-05  5:11 ` Alan Mimms
  0 siblings, 2 replies; 3+ messages in thread
From: LiuTao @ 2000-01-05  4:58 UTC (permalink / raw)
  To: linuxppc-embedded@lists.linuxppc.org


Hi:

In linux/arch/ppc/kernel/head.S, what does KERNELBASE mean?
What does the following mean?
".long	TOPHYS(__start),0,0"

Thanks.

LiuTao

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

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

* Re: What does KERNELBASE mean?
  2000-01-05  4:58 What does KERNELBASE mean? LiuTao
@ 2000-01-05  5:07 ` Alan Mimms
  2000-01-05  5:11 ` Alan Mimms
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Mimms @ 2000-01-05  5:07 UTC (permalink / raw)
  To: LiuTao, linuxppc-embedded@lists.linuxppc.org


This .long stuff dates back to the POWER architecture (IBM) beginnings of
PowerPC wherein IBM and later Apple defined a three (or even longer) word table
of contents entry for each global entry point.  The first word was the pointer
to the function, the second word was the pointer to be used for the
subroutine's duration for its TOC register value and the third word was some
kinda magical language defined extra thingie nobody ever used as far as I know.

Effectively, its a larger style function pointer.

The boot ROMs on some PowerPC machines (Apple's Open Firmware for example)
expect the entry point of a loaded image to have one of these at the entry
point location.  They simply load the value there and jump to it to start the
loaded image.

 On Tue, 04 Jan 2000, LiuTao wrote:
> Hi:
> 
> In linux/arch/ppc/kernel/head.S, what does KERNELBASE mean?
> What does the following mean?
> ".long	TOPHYS(__start),0,0"
> 
> Thanks.
> 
> LiuTao
-- 
Alan Mimms     Packet Engines, Inc.     Spokane, Washington [99214-0497]
  USA, Earth, Sol, Milky Way, The Local Group, Virgo Supercluster, U0
Despite the cost of living, have you noticed how popular it remains?
  -- Steven Wright?

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

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

* Re: What does KERNELBASE mean?
  2000-01-05  4:58 What does KERNELBASE mean? LiuTao
  2000-01-05  5:07 ` Alan Mimms
@ 2000-01-05  5:11 ` Alan Mimms
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Mimms @ 2000-01-05  5:11 UTC (permalink / raw)
  To: LiuTao, linuxppc-embedded@lists.linuxppc.org


KERNELBASE is the virtual address the physical RAM is mapped to.

On most kernels on PowerPC this is 0xC0000000.  If you subtract KERNELBASE from
a virtual address, you get its physical address in RAM, since PowerPC platforms
more or less universally define that RAM starts at 0x00000000.  Hence the name
TOPHYS.

a

On Tue, 04 Jan
2000, LiuTao wrote: > Hi:
> 
> In linux/arch/ppc/kernel/head.S, what does KERNELBASE mean?
> What does the following mean?
> ".long	TOPHYS(__start),0,0"
> 
> Thanks.
> 
> LiuTao
-- 
Alan Mimms     Packet Engines, Inc.     Spokane, Washington [99214-0497]
  USA, Earth, Sol, Milky Way, The Local Group, Virgo Supercluster, U0
Despite the cost of living, have you noticed how popular it remains?
  -- Steven Wright?

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

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

end of thread, other threads:[~2000-01-05  5:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-05  4:58 What does KERNELBASE mean? LiuTao
2000-01-05  5:07 ` Alan Mimms
2000-01-05  5:11 ` Alan Mimms

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