mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/platform: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
This commit is contained in:
parent
a7b1aae68c
commit
c0a4e00cc9
40 changed files with 200 additions and 960 deletions
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,25 +54,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -99,10 +84,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -127,15 +108,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -145,7 +126,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,25 +54,10 @@
|
|||
* constructors
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -99,10 +84,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -127,15 +108,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -145,7 +126,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,25 +53,10 @@
|
|||
* constructors.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DEBUG_FEATURES
|
||||
# undef CONFIG_DEBUG_CXX
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_CXX
|
||||
# define cxxerr err
|
||||
# define cxxllerr llerr
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define cxxinfo info
|
||||
# define cxxllinfo llinfo
|
||||
# else
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
# endif
|
||||
# define cxxinfo info
|
||||
#else
|
||||
# define cxxerr(x...)
|
||||
# define cxxllerr(x...)
|
||||
# define cxxinfo(x...)
|
||||
# define cxxllinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
@ -98,10 +83,6 @@ extern initializer_t _einit;
|
|||
extern uint32_t _stext;
|
||||
extern uint32_t _etext;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -126,15 +107,15 @@ void up_cxxinitialize(void)
|
|||
{
|
||||
initializer_t *initp;
|
||||
|
||||
cxxerr("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
cxxinfo("_sinit: %p _einit: %p _stext: %p _etext: %p\n",
|
||||
&_sinit, &_einit, &_stext, &_etext);
|
||||
|
||||
/* Visit each entry in the initialization table */
|
||||
|
||||
for (initp = &_sinit; initp != &_einit; initp++)
|
||||
{
|
||||
initializer_t initializer = *initp;
|
||||
cxxerr("initp: %p initializer: %p\n", initp, initializer);
|
||||
cxxinfo("initp: %p initializer: %p\n", initp, initializer);
|
||||
|
||||
/* Make sure that the address is non-NULL and lies in the text region
|
||||
* defined by the linker script. Some toolchains may put NULL values
|
||||
|
|
@ -144,7 +125,7 @@ void up_cxxinitialize(void)
|
|||
if ((void *)initializer > (void *)&_stext &&
|
||||
(void *)initializer < (void *)&_etext)
|
||||
{
|
||||
cxxerr("Calling %p\n", initializer);
|
||||
cxxinfo("Calling %p\n", initializer);
|
||||
initializer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue