Changeset 499a89b in rtems


Ignore:
Timestamp:
Jun 24, 2021, 6:26:02 AM (3 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
61d0be7
Parents:
8416e7c
git-author:
Sebastian Huber <sebastian.huber@…> (06/24/21 06:26:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/24/21 06:27:21)
Message:

grlib: Register system console as /dev/console

Close #4461.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/grlib/uart/cons.c

    r8416e7c r499a89b  
    1414
    1515#include <bsp.h>
    16 #include <stdlib.h>
    1716#include <string.h>
     17#include <unistd.h>
    1818#include <grlib/cons.h>
    1919#include <rtems/console.h>
     
    6565        if (status != RTEMS_SUCCESSFUL) {
    6666                rtems_fatal_error_occurred(status);
     67        }
     68
     69        if ((con->flags & FLAG_SYSCON) != 0) {
     70                (void) link(fsname, CONSOLE_DEVICE_NAME);
    6771        }
    6872}
Note: See TracChangeset for help on using the changeset viewer.