mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* confused about "__PBL__" macro and whether it's actually used
@ 2012-12-04 12:41 Robert P. J. Day
  2012-12-04 16:36 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2012-12-04 12:41 UTC (permalink / raw)
  To: U-Boot Version 2 (barebox)


  perusing arch/arm/mach-omap/omap3_generic.c and i noticed that the
initcall "omap3_gpio_init" is apparently invoked by the TI X-loader,
even though it *appears* to be protected by the macro:

#ifndef __PBL__
static int omap3_gpio_init(void)
{
... snip ...
}
coredevice_initcall(omap3_gpio_init);
#endif

  i assume __PBL__ is meant to refer to the "primary bootloader" --
that would be X-loader -- which suggests that that initcall shouldn't
be invoked by the X-loader as long as that macro is being defined
correctly.

  am i misunderstanding something here?  i'm going to check the
makefiles to see if i'm just confused.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: confused about "__PBL__" macro and whether it's actually used
  2012-12-04 12:41 confused about "__PBL__" macro and whether it's actually used Robert P. J. Day
@ 2012-12-04 16:36 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-12-04 16:56   ` Robert P. J. Day
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-12-04 16:36 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: U-Boot Version 2 (barebox)

On 07:41 Tue 04 Dec     , Robert P. J. Day wrote:
> 
>   perusing arch/arm/mach-omap/omap3_generic.c and i noticed that the
> initcall "omap3_gpio_init" is apparently invoked by the TI X-loader,
> even though it *appears* to be protected by the macro:
> 
> #ifndef __PBL__
> static int omap3_gpio_init(void)
> {
> ... snip ...
> }
> coredevice_initcall(omap3_gpio_init);
> #endif
> 
>   i assume __PBL__ is meant to refer to the "primary bootloader" --
> that would be X-loader -- which suggests that that initcall shouldn't
> be invoked by the X-loader as long as that macro is being defined
> correctly.
> 
>   am i misunderstanding something here?  i'm going to check the
> makefiles to see if i'm just confused.
no this means pre-bootloader aso this is in zbarebox.bin case only

for the code that contain the decompressor

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: confused about "__PBL__" macro and whether it's actually used
  2012-12-04 16:36 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-12-04 16:56   ` Robert P. J. Day
  0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2012-12-04 16:56 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: U-Boot Version 2 (barebox)

On Tue, 4 Dec 2012, Jean-Christophe PLAGNIOL-VILLARD wrote:

> On 07:41 Tue 04 Dec     , Robert P. J. Day wrote:
> >
> >   perusing arch/arm/mach-omap/omap3_generic.c and i noticed that the
> > initcall "omap3_gpio_init" is apparently invoked by the TI X-loader,
> > even though it *appears* to be protected by the macro:
> >
> > #ifndef __PBL__
> > static int omap3_gpio_init(void)
> > {
> > ... snip ...
> > }
> > coredevice_initcall(omap3_gpio_init);
> > #endif
> >
> >   i assume __PBL__ is meant to refer to the "primary bootloader" --
> > that would be X-loader -- which suggests that that initcall shouldn't
> > be invoked by the X-loader as long as that macro is being defined
> > correctly.
> >
> >   am i misunderstanding something here?  i'm going to check the
> > makefiles to see if i'm just confused.

> no this means pre-bootloader aso this is in zbarebox.bin case only
>
> for the code that contain the decompressor

  ah, got it, thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-12-04 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-04 12:41 confused about "__PBL__" macro and whether it's actually used Robert P. J. Day
2012-12-04 16:36 ` Jean-Christophe PLAGNIOL-VILLARD
2012-12-04 16:56   ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox