Back to index

glibc  2.9
Defines | Functions
console.c File Reference
#include <standalone.h>
#include "i960ca.h"

Go to the source code of this file.

Defines

#define NINDY_INPUT   0
#define NINDY_OUTPUT   1

Functions

void ___NINDY_IO_WRAPPER (void)
int _Console_Putc (char ch)
int _Console_Getc (int poll)

Define Documentation

#define NINDY_INPUT   0

Definition at line 32 of file console.c.

#define NINDY_OUTPUT   1

Definition at line 33 of file console.c.


Function Documentation

void ___NINDY_IO_WRAPPER ( void  )

Definition at line 35 of file console.c.

{
   asm volatile ( "       .text" );
   asm volatile ( "       .align 4" );
   asm volatile ( "       .globl _NINDY_IO" );
   asm volatile ( "_NINDY_IO:" );
   asm volatile ( "        calls   0       /* call console routines */" );
   asm volatile ( "        ret" );
}
int _Console_Getc ( int  poll)

Definition at line 64 of file console.c.

{
  char ch;

  if ( poll ) {
    /* I don't know how to poll with NINDY */
    return -1;
  } else {
    NINDY_IO( NINDY_INPUT, &ch );
    return ch;
  }
}

Here is the call graph for this function:

int _Console_Putc ( char  ch)

Definition at line 52 of file console.c.

{
  NINDY_IO( NINDY_OUTPUT, ch );
  return( 0 );
}