From: Wolfgang Denk Date: Sat, 04 Oct 2008 01:12:44 +0200 Subject: [U-Boot] [PATCH 3/3 v2] ppc4xx: Add routine to retrieve CPU number In-Reply-To: <1222897566-18521-1-git-send-email-agraham@amcc.com> References: <1222897566-18521-1-git-send-email-agraham@amcc.com> Message-ID: <20081003231244.1837D2480D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Adam Graham, In message <1222897566-18521-1-git-send-email-agraham@amcc.com> you wrote: > Provide a weak defined routine to retrieve the CPU number for reference boards that have multiple CPU's. Default behavior is the existing single CPU print output. Reference boards with multiple CPU's need to provide a board specific routine. See board/amcc/arches/arches.c for an example. Line too long. > +int __get_cpu_num(void) > +{ > + return __NA_OR_UNKNOWN_CPU; ... > --- a/include/ppc4xx.h > +++ b/include/ppc4xx.h > @@ -218,4 +218,7 @@ static inline void set_mcsr(u32 val) > > #endif /* __ASSEMBLY__ */ > > +/* for multi-cpu support */ > +#define __NA_OR_UNKNOWN_CPU -1 Please don't use identifiers starting with underscores. These have a special meaning in C. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Der Horizont vieler Menschen ist ein Kreis mit Radius Null -- und das nennen sie ihren Standpunkt.