Changeset a8c48241 in mainline for arch/ia64/src/ski


Ignore:
Timestamp:
2005-11-27T21:37:50Z (20 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a28943
Parents:
f4338d2
Message:

Keyboard support for ski (ia64 emulator)

File:
1 edited

Legend:

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

    rf4338d2 ra8c48241  
    6565        if (ch == '\n') ski_putchar('\r');
    6666}
     67
     68
     69/** Display character on debug console
     70 *
     71 * Use SSC (Simulator System Call) to
     72 * get character from debug console.
     73 */
     74__s32 ski_getchar(void)
     75{
     76        __u64 ch;
     77       
     78        __asm__ (
     79                "mov r15=%0\n"
     80                "break 0x80000;;\n"     /* modifies r8 */
     81                "mov %1=r8;;\n"         
     82
     83                :
     84                : "i" (SKI_GETCHAR), "r" (ch)
     85                : "r15",  "r8"
     86        );
     87
     88        return (__s32)ch;
     89}
Note: See TracChangeset for help on using the changeset viewer.