summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bsps/shared/grlib/uart/cons.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bsps/shared/grlib/uart/cons.c b/bsps/shared/grlib/uart/cons.c
index 5fa41e6914..9c20193b3c 100644
--- a/bsps/shared/grlib/uart/cons.c
+++ b/bsps/shared/grlib/uart/cons.c
@@ -13,8 +13,8 @@
*/
#include <bsp.h>
-#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <grlib/cons.h>
#include <rtems/console.h>
@@ -65,6 +65,10 @@ static void console_dev_init(struct console_priv *con)
if (status != RTEMS_SUCCESSFUL) {
rtems_fatal_error_occurred(status);
}
+
+ if ((con->flags & FLAG_SYSCON) != 0) {
+ (void) link(fsname, CONSOLE_DEVICE_NAME);
+ }
}
/* Called by device driver to register itself to the cons interface. */