confused about "__PBL__" macro and whether it's actually used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux