Thread (1 message) 1 message, 1 author, 2000-07-17

Re: Help with MPC port

From: Wolfgang Denk <hidden>
Date: 2000-07-17 16:53:44

In message [ref] you wrote:
I noticed in the m8xx_tty.c that the first few lines of code try to
access the structure immap_t. But, who initializes these structures ?
Is it the EPPCbug of MBX ? If so, how do I go about doing similar
thing on my proprietary board ?
It's the CPU who initializes this struc :-)

You see it's used like that: "((immap_t *)IMAP_ADDR)->..."; IMAP_ADDR
is the (physical) address where the IMMR of your CPU  is  mapped,  so
you're accessing hardware registers, not some data structures in RAM.

Welcome to the world of low level, hardware related programming!

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Bradley's Bromide: If computers get too  powerful,  we  can  organize
them into a committee - that will do them in.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help