Ignore:
Timestamp:
2019-03-31T19:24:35Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
124bc22, d6dc9a12
Parents:
f27e21d
Message:

dsrlnout_init() needs to get physical address too

The IO address we are passing into dsrlnout_init() should not be a
kernel-identity virtual address, because the device memory should not be
cacheable. Therefore, the function cannot use KA2PA to translate it
back to physical address when creating the parea.

File:
1 edited

Legend:

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

    rf27e21d re064102  
    8181{
    8282#ifdef CONFIG_MSIM_PRN
    83         outdev_t *dsrlndev = dsrlnout_init((ioport8_t *) MSIM_KBD_ADDRESS);
     83        outdev_t *dsrlndev = dsrlnout_init((ioport8_t *) MSIM_KBD_ADDRESS,
     84            KSEG12PA(MSIM_KBD_ADDRESS));
    8485        if (dsrlndev)
    8586                stdout_wire(dsrlndev);
Note: See TracChangeset for help on using the changeset viewer.