Changeset a71c158 in mainline for kernel/arch/mips32/src/mips32.c


Ignore:
Timestamp:
2009-08-21T14:12:45Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e6dce8, b50b5af2, e5792d1
Parents:
90c8b8d
Message:

kernel output devices now suport multiple instances (except ski and sgcn, which respect the same interface, but behave as singletons)
if more than one output device gets initialized, the output is cloned to all of them
get rid of arch_grab_console() and arch_release_console() (output devices can implement a generic "redraw" method, input devices respect the "silent" global variable)
related cleanups and modifications

File:
1 edited

Legend:

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

    r90c8b8d ra71c158  
    144144                .visual = VISUAL_RGB_8_8_8,
    145145        };
    146         fb_init(&gxemul_prop);
    147 #else
     146       
     147        outdev_t *fbdev = fb_init(&gxemul_prop);
     148        if (fbdev)
     149                stdout_wire(fbdev);
     150#endif
     151
    148152#ifdef CONFIG_MIPS_PRN
    149         dsrlnout_init((ioport8_t *) MSIM_KBD_ADDRESS);
    150 #endif /* CONFIG_MIPS_PRN */
    151 #endif /* CONFIG_FB */
     153        outdev_t *dsrlndev = dsrlnout_init((ioport8_t *) MSIM_KBD_ADDRESS);
     154        if (dsrlndev)
     155                stdout_wire(dsrlndev);
     156#endif
    152157}
    153158
     
    252257}
    253258
    254 void arch_grab_console(void)
    255 {
    256 #ifdef CONFIG_FB
    257         fb_redraw();
    258 #endif
    259 }
    260 
    261 /** Return console to userspace
    262  *
    263  */
    264 void arch_release_console(void)
    265 {
    266 }
    267 
    268259/** @}
    269260 */
Note: See TracChangeset for help on using the changeset viewer.