Re-design vsprintf so that it does not use so much stack; handle 8051's 2-byte generic pointers.

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@38 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2007-03-05 20:38:39 +00:00
parent d62a01ebfa
commit d2f7a7e151
6 changed files with 35 additions and 1 deletions

View File

@ -111,6 +111,12 @@ defconfig -- This is a configuration file similar to the Linux
CONFIG_DISABLE_CLOCK, CONFIG_DISABLE_PTHREAD. CONFIG_DISABLE_CLOCK, CONFIG_DISABLE_PTHREAD.
CONFIG_DISABLE_SIGNALS, CONFIG_DISABLE_MQUEUE CONFIG_DISABLE_SIGNALS, CONFIG_DISABLE_MQUEUE
Misc libc settings
CONFIG_NOPRINTF_FIELDWIDTH - sprintf-related logic is a
little smaller if we do not support fieldwidthes
Allow for architecture optimized implementations Allow for architecture optimized implementations
The architecture can provide optimized versions of the The architecture can provide optimized versions of the

View File

@ -135,6 +135,14 @@ CONFIG_DISABLE_PTHREAD=n
CONFIG_DISABLE_SIGNALS=n CONFIG_DISABLE_SIGNALS=n
CONFIG_DISABLE_MQUEUE=n CONFIG_DISABLE_MQUEUE=n
#
# Misc libc settings
#
# CONFIG_NOPRINTF_FIELDWIDTH - sprintf-related logic is a
# little smaller if we do not support fieldwidthes
#
CONFIG_NOPRINTF_FIELDWIDTH=n
# #
# Allow for architecture optimized implementations # Allow for architecture optimized implementations
# #

View File

@ -102,6 +102,14 @@ CONFIG_DISABLE_PTHREAD=y
CONFIG_DISABLE_SIGNALS=y CONFIG_DISABLE_SIGNALS=y
CONFIG_DISABLE_MQUEUE=y CONFIG_DISABLE_MQUEUE=y
#
# Misc libc settings
#
# CONFIG_NOPRINTF_FIELDWIDTH - sprintf-related logic is a
# little smaller if we do not support fieldwidthes
#
CONFIG_NOPRINTF_FIELDWIDTH=y
# #
# Allow for architecture optimized implementations # Allow for architecture optimized implementations
# #

View File

@ -84,4 +84,4 @@ void up_addregion(void)
{ {
mm_addregion((FAR void*)UP_HEAP2_BASE, UP_HEAP2_END - UP_HEAP2_BASE); mm_addregion((FAR void*)UP_HEAP2_BASE, UP_HEAP2_END - UP_HEAP2_BASE);
} }
#endif #endif

View File

@ -69,11 +69,15 @@
void up_irqinitialize(void) void up_irqinitialize(void)
{ {
#if 1 /* remove me */
IE = 0;
#else
/* Enable interrupts globally, but disable all interrupt /* Enable interrupts globally, but disable all interrupt
* sources. * sources.
*/ */
IE = 0x80; IE = 0x80;
#endif
} }
/************************************************************ /************************************************************

View File

@ -102,6 +102,14 @@ CONFIG_DISABLE_PTHREAD=n
CONFIG_DISABLE_SIGNALS=n CONFIG_DISABLE_SIGNALS=n
CONFIG_DISABLE_MQUEUE=n CONFIG_DISABLE_MQUEUE=n
#
# Misc libc settings
#
# CONFIG_NOPRINTF_FIELDWIDTH - sprintf-related logic is a
# little smaller if we do not support fieldwidthes
#
CONFIG_NOPRINTF_FIELDWIDTH=n
# #
# Allow for architecture optimized implementations # Allow for architecture optimized implementations
# #