Changeset 4a2b52f in mainline


Ignore:
Timestamp:
2006-02-26T16:49:35Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
481c520
Parents:
a29bd22
Message:

Itanium active keyboard

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/src/ski/ski.c

    ra29bd22 r4a2b52f  
    4747void ski_putchar(chardev_t *d, const char ch)
    4848{
    49         __asm__ (
     49        __asm__ volatile (
    5050                "mov r15=%0\n"
    5151                "mov r32=%1\n"          /* r32 is in0 */
     
    7373        __u64 ch;
    7474       
    75         __asm__ (
     75        __asm__ volatile (
    7676                "mov r15=%1\n"
    7777                "break 0x80000;;\n"     /* modifies r8 */
     
    8585        return (__s32) ch;
    8686}
     87
     88/**
     89        This is blocking wrap function of ski_getchar
     90        It active waits ... for using with non-stable kernel
     91*/
     92static char ski_getchar_blocking(chardev_t *d)
     93{
     94        volatile int ch;
     95        while(!(ch=ski_getchar()));
     96        if(ch == '\r') ch = '\n';
     97        return (char) ch;
     98}
     99
    87100
    88101/** Ask keyboard if a key was pressed. */
     
    117130        .resume = ski_kb_enable,
    118131        .suspend = ski_kb_disable,
    119         .write = ski_putchar
     132        .write = ski_putchar,
     133        .read = ski_getchar_blocking
    120134};
    121135
     
    128142void ski_init_console(void)
    129143{
    130         __asm__ (
     144        __asm__ volatile (
    131145                "mov r15=%0\n"
    132146                "break 0x80000\n"
  • kernel.config

    ra29bd22 r4a2b52f  
    8989@ "mm/slab1" SLAB test1 - No CPU-cache
    9090@ "mm/slab2" SLAB test2 - SMP CPU cache
     91@ "fault/fault1" Write to NULL (maybe page fault)
    9192@ [ARCH=mips32] "debug/mips1" Mips breakpoint-debug test
    9293! CONFIG_TEST (choice)
Note: See TracChangeset for help on using the changeset viewer.