Changeset e064102 in mainline
- Timestamp:
- 2019-03-31T19:24:35Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 124bc22, d6dc9a12
- Parents:
- f27e21d
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mach/msim/msim.c
rf27e21d re064102 81 81 { 82 82 #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)); 84 85 if (dsrlndev) 85 86 stdout_wire(dsrlndev); -
kernel/genarch/include/genarch/drivers/dsrln/dsrlnout.h
rf27e21d re064102 39 39 40 40 #include <typedefs.h> 41 #include <stdint.h> 41 42 #include <console/chardev.h> 42 43 43 extern outdev_t *dsrlnout_init(ioport8_t * );44 extern outdev_t *dsrlnout_init(ioport8_t *, uintptr_t); 44 45 45 46 #endif -
kernel/genarch/src/drivers/dsrln/dsrlnout.c
rf27e21d re064102 68 68 }; 69 69 70 outdev_t *dsrlnout_init(ioport8_t *base )70 outdev_t *dsrlnout_init(ioport8_t *base, uintptr_t base_phys) 71 71 { 72 72 outdev_t *dsrlndev = malloc(sizeof(outdev_t)); … … 85 85 instance->base = base; 86 86 ddi_parea_init(&instance->parea); 87 instance->parea.pbase = KA2PA(base);87 instance->parea.pbase = base_phys; 88 88 instance->parea.frames = 1; 89 89 instance->parea.unpriv = false;
Note:
See TracChangeset
for help on using the changeset viewer.