Ignore:
Timestamp:
2008-07-27T15:15:48Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94fa807d
Parents:
46d8eb9
Message:

reintroduce support for MSIM text console in user space

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/drivers/msim.c

    r46d8eb9 r113c677  
    4040#include <console/console.h>
    4141#include <sysinfo/sysinfo.h>
     42#include <ddi/ddi.h>
    4243
     44static parea_t msim_parea;
    4345static chardev_t console;
    4446static irq_t msim_irq;
     
    154156        sysinfo_set_item_val("kbd.inr", NULL, MSIM_KBD_IRQ);
    155157        sysinfo_set_item_val("kbd.address.virtual", NULL, MSIM_KBD_ADDRESS);
     158       
     159        msim_parea.pbase = KA2PA(MSIM_VIDEORAM);
     160        msim_parea.vbase = MSIM_VIDEORAM;
     161        msim_parea.frames = 1;
     162        msim_parea.cacheable = false;
     163        ddi_parea_register(&msim_parea);
     164       
     165        sysinfo_set_item_val("fb", NULL, true);
     166        sysinfo_set_item_val("fb.kind", NULL, 3);
     167        sysinfo_set_item_val("fb.address.physical", NULL, KA2PA(MSIM_VIDEORAM));
    156168}
    157169
Note: See TracChangeset for help on using the changeset viewer.