Ignore:
Timestamp:
2019-04-06T13:06:40Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
46e886f
Parents:
3d0fd0d
Message:

Enable malta user console on com1

Still a WiP as proper arbitration with the kernel console does not work
yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mach/malta/malta.c

    r3d0fd0d r69c31abc  
    4444#include <stdbool.h>
    4545#include <byteorder.h>
     46#include <sysinfo/sysinfo.h>
    4647#include <log.h>
     48#include <str.h>
    4749
    4850static void malta_init(void);
     
    100102
    101103        i8259_init((i8259_t *) PIC0_BASE, (i8259_t *) PIC1_BASE, 0);
     104        sysinfo_set_item_val("i8259", NULL, true);
    102105
    103106        int_handler[INT_HW0] = malta_isa_irq_handler;
     
    113116            NULL, NULL, tty_out_ptr);
    114117#endif
     118
     119        const char *args = "console=devices/\\hw\\pci0\\00:0a.0\\com1\\a";
     120        str_ncpy(bargs, CONFIG_BOOT_ARGUMENTS_BUFLEN, args, str_length(args));
    115121}
    116122
Note: See TracChangeset for help on using the changeset viewer.