summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-03-11 00:00:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-03-11 00:00:37 +0100
commit8759e68de2e2b4ce1793d36d668359eb80278c2c (patch)
treed30cd455f52e37bea10e8ac4cc296fc8d85e7a7c /common/console.c
parent4dba16c692bbe50ae22e3d678a01d054c4e52bb4 (diff)
downloadbarebox-8759e68de2e2b4ce1793d36d668359eb80278c2c.tar.gz
barebox-8759e68de2e2b4ce1793d36d668359eb80278c2c.tar.xz
Add the possibility to have an architecture specific ctrlc() function.
This allows us to return immediately in ctrlc() on sandbox and thus not slow down network througput.
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index 80f8cdb890..e47c46061e 100644
--- a/common/console.c
+++ b/common/console.c
@@ -357,6 +357,7 @@ int vprintf (const char *fmt, va_list args)
}
EXPORT_SYMBOL(vprintf);
+#ifndef ARCH_HAS_CTRLC
/* test if ctrl-c was pressed */
int ctrlc (void)
{
@@ -365,6 +366,7 @@ int ctrlc (void)
return 0;
}
EXPORT_SYMBOL(ctrlc);
+#endif /* ARCH_HAS_CTRC */
#ifdef CONFIG_HAS_EARLY_INIT