summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-05 20:38:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-05 20:38:39 +0000
commit36be54817fe1d8879f26b7f0e1797e8ba23e8a0f (patch)
treedcb1e1716e40880ec68883fdc0a50123eea77293 /nuttx/arch
parent152b278e70541d86a06e76c25f37c9588526c6fa (diff)
downloadnuttx-36be54817fe1d8879f26b7f0e1797e8ba23e8a0f.tar.gz
nuttx-36be54817fe1d8879f26b7f0e1797e8ba23e8a0f.tar.bz2
nuttx-36be54817fe1d8879f26b7f0e1797e8ba23e8a0f.zip
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
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/README.txt6
-rw-r--r--nuttx/arch/c5471/defconfig8
-rw-r--r--nuttx/arch/pjrc-8051/defconfig8
-rw-r--r--nuttx/arch/pjrc-8051/src/up_allocateheap.c2
-rw-r--r--nuttx/arch/pjrc-8051/src/up_irq.c4
-rw-r--r--nuttx/arch/sim/defconfig8
6 files changed, 35 insertions, 1 deletions
diff --git a/nuttx/arch/README.txt b/nuttx/arch/README.txt
index 64a77e924..35279349f 100644
--- a/nuttx/arch/README.txt
+++ b/nuttx/arch/README.txt
@@ -111,6 +111,12 @@ defconfig -- This is a configuration file similar to the Linux
CONFIG_DISABLE_CLOCK, CONFIG_DISABLE_PTHREAD.
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
The architecture can provide optimized versions of the
diff --git a/nuttx/arch/c5471/defconfig b/nuttx/arch/c5471/defconfig
index 1ce7dd879..e3f8d028a 100644
--- a/nuttx/arch/c5471/defconfig
+++ b/nuttx/arch/c5471/defconfig
@@ -136,6 +136,14 @@ CONFIG_DISABLE_SIGNALS=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
#
# The architecture can provide optimized versions of the
diff --git a/nuttx/arch/pjrc-8051/defconfig b/nuttx/arch/pjrc-8051/defconfig
index 508440c27..c24f0a08d 100644
--- a/nuttx/arch/pjrc-8051/defconfig
+++ b/nuttx/arch/pjrc-8051/defconfig
@@ -103,6 +103,14 @@ CONFIG_DISABLE_SIGNALS=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
#
# The architecture can provide optimized versions of the
diff --git a/nuttx/arch/pjrc-8051/src/up_allocateheap.c b/nuttx/arch/pjrc-8051/src/up_allocateheap.c
index b6e6a0208..bdbe464b4 100644
--- a/nuttx/arch/pjrc-8051/src/up_allocateheap.c
+++ b/nuttx/arch/pjrc-8051/src/up_allocateheap.c
@@ -84,4 +84,4 @@ void up_addregion(void)
{
mm_addregion((FAR void*)UP_HEAP2_BASE, UP_HEAP2_END - UP_HEAP2_BASE);
}
-#endif \ No newline at end of file
+#endif
diff --git a/nuttx/arch/pjrc-8051/src/up_irq.c b/nuttx/arch/pjrc-8051/src/up_irq.c
index 772623167..e9f2c2a13 100644
--- a/nuttx/arch/pjrc-8051/src/up_irq.c
+++ b/nuttx/arch/pjrc-8051/src/up_irq.c
@@ -69,11 +69,15 @@
void up_irqinitialize(void)
{
+#if 1 /* remove me */
+ IE = 0;
+#else
/* Enable interrupts globally, but disable all interrupt
* sources.
*/
IE = 0x80;
+#endif
}
/************************************************************
diff --git a/nuttx/arch/sim/defconfig b/nuttx/arch/sim/defconfig
index 9d8aab7aa..1dbd2365d 100644
--- a/nuttx/arch/sim/defconfig
+++ b/nuttx/arch/sim/defconfig
@@ -103,6 +103,14 @@ CONFIG_DISABLE_SIGNALS=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
#
# The architecture can provide optimized versions of the