Changeset 973be64e in mainline for generic/src/console/console.c


Ignore:
Timestamp:
2005-12-10T00:19:57Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fcfac420
Parents:
705b4149
Message:

Added generic exc_register/exc_dispatch functions,
copied from ia32 architecture. Currently only mips32 uses them.

The chardev_t can now be both input & output device (was
needed for serial driver).

Broken other architectures - ia64, sparc, powerpc will not compile.

Mips32 supports input on all msim, gxemul, indy(tested emulation
in gxemul, loses characters), simics. Simics serial line
is done using polling, I was unable to make it produce
an interrupt when the key was pressed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/console/console.c

    r705b4149 r973be64e  
    3838/** Standard input character device. */
    3939chardev_t *stdin = NULL;
     40chardev_t *stdout = NULL;
    4041
    4142/** Get string from character device.
     
    8586        interrupts_restore(ipl);
    8687
    87         chardev->op->resume();
     88        chardev->op->resume(chardev);
    8889
    8990        return ch;
    9091}
     92
     93void putchar(char c)
     94{
     95        stdout->op->write(stdout, c);
     96}
Note: See TracChangeset for help on using the changeset viewer.