Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 69c31ab in mainline


Ignore:
Timestamp:
2019-04-06T13:06:40Z (22 months ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/mips32/Makefile.inc

    r3d0fd0d r69c31ab  
    5454        RD_DRVS_ESSENTIAL += \
    5555                platform/malta \
     56                intctl/i8259 \
    5657                block/ata_bd \
    5758                bus/pci/pciintel \
    5859                bus/isa \
    5960                char/i8042 \
     61                char/ns8250 \
    6062                hid/ps2mouse \
    6163                hid/xtkbd
  • kernel/arch/mips32/src/mach/malta/malta.c

    r3d0fd0d r69c31ab  
    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.