Ignore:
Timestamp:
Aug 14, 2012, 8:14:55 PM (12 years ago)
Author:
alain
Message:

mproving support for multi-clusters architectures (CLUSTER_SIZE & CLUSTER_IO_ID parameters)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/libs/stdio.c

    r203 r204  
    2121#define SYSCALL_GCD_WRITE       0x06
    2222#define SYSCALL_GCD_READ        0x07
    23 #define SYSCALL_TTY_READ_IRQ    0x0A
    24 #define SYSCALL_TTY_WRITE_IRQ   0x0B
    2523#define SYSCALL_CTX_SWITCH      0x0D
    2624#define SYSCALL_EXIT            0x0E
     
    165163                    0,0);
    166164}
    167 
    168 ////////////////////////////////////////////////////////////////////////////////////
    169 // giet_tty_getc_no_irq()
    170 ////////////////////////////////////////////////////////////////////////////////////
    171 // This blocking function fetches a single ascii character from a terminal.
    172 // The terminal index must be defined in the task context in the boot phase.
    173 // It doesn't use the IRQ_GET interrupt, and the associated kernel buffer.
    174 // - Returns necessarily 0 when completed.
    175 ////////////////////////////////////////////////////////////////////////////////////
    176 unsigned int giet_tty_getc_no_irq(char *byte)
    177 {
    178     unsigned int ret = 0;
    179     while (ret == 0)
    180     {
    181         ret = sys_call(SYSCALL_TTY_READ,
    182                        (unsigned int)byte,
    183                        1,
    184                        0,0);
    185     }
    186     return 0;
    187 }
    188165////////////////////////////////////////////////////////////////////////////////////
    189166// giet_tty_getc()
     
    199176    while (ret == 0)
    200177    {
    201         ret = sys_call(SYSCALL_TTY_READ_IRQ,
     178        ret = sys_call(SYSCALL_TTY_READ,
    202179                       (unsigned int)byte,
    203180                       1,
     
    231208    {
    232209        do {
    233             ret = sys_call(SYSCALL_TTY_READ_IRQ,
     210            ret = sys_call(SYSCALL_TTY_READ,
    234211                           (unsigned int)(&byte),
    235212                           1,
     
    283260    {
    284261        do {
    285             ret = sys_call(SYSCALL_TTY_READ_IRQ,
     262            ret = sys_call(SYSCALL_TTY_READ,
    286263                           (unsigned int)(&byte),
    287264                           1,
Note: See TracChangeset for help on using the changeset viewer.