Changeset c64e4ed4 in rtems for c/src/lib/libbsp/hppa1.1


Ignore:
Timestamp:
01/15/96 21:50:28 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a625ccd
Parents:
5c491aef
Message:

updates from Tony Bennett for PA and UNIX ports

Location:
c/src/lib/libbsp/hppa1.1/simhppa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/hppa1.1/simhppa/include/bsp.h

    r5c491aef rc64e4ed4  
    6767
    6868/*
     69 * Todo: this should be put somewhere else
     70 */
     71
     72#undef CLOCK_DRIVER_TABLE_ENTRY
     73#define CLOCK_DRIVER_TABLE_ENTRY { Clock_initialize, NULL, NULL, NULL, NULL, Clock_control }
     74rtems_device_driver Clock_control(
     75  rtems_device_major_number major,
     76  rtems_device_minor_number minor,
     77  void *pargp
     78);
     79
     80/*
    6981 * We printf() to a buffer if multiprocessing, *or* if this is set.
    70  * ref: src/lib/libbsp/hppa/simhppa/iosupp/consupp.c
     82 * ref: src/lib/libbsp/hppa/pxfl/iosupp/consupp.c
    7183 */
    7284
    7385extern int use_print_buffer;
     86
     87/*
     88 * When not doing printf to a buffer, we do printf thru RTEMS libio
     89 * and our tty driver.  Set it up so that console is right.
     90 */
     91
     92#define CONSOLE_DRIVER_TABLE_ENTRY \
     93  { tty_initialize, tty_open, tty_close, tty_read, tty_write, tty_control }
     94
     95/*
     96 * How many libio files we want
     97 */
     98#define BSP_LIBIO_MAX_FDS       20
    7499
    75100/*
     
    98123rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
    99124
     125rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
     126
    100127void bsp_start( void );
    101128void bsp_cleanup( void );
  • c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c

    r5c491aef rc64e4ed4  
    3636
    3737#include <bsp.h>
    38 #include <runway.h>
    3938
    4039#include <shm.h>
     
    4443
    4544#define HPPA_RUNWAY_PROC_HPA_BASE  ((void *) 0xFFFA0000)
    46  
     45
    4746/* given a processor number, where is its HPA? */
    4847#define HPPA_RUNWAY_HPA(cpu)   \
    4948  ((rtems_unsigned32) (HPPA_RUNWAY_PROC_HPA_BASE + ((cpu) * 0x2000)))
    50  
     49
    5150#define HPPA_RUNWAY_REG_IO_EIR_OFFSET   0x000
    5251
    5352shm_config_table BSP_shm_cfgtbl;
    5453
    55 void Shm_Cause_interrupt_pxfl( rtems_unsigned32 node );
     54extern void Shm_Cause_interrupt_pxfl( rtems_unsigned32 node );
    5655
    5756void Shm_Get_configuration(
  • c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c

    r5c491aef rc64e4ed4  
    2323
    2424#include <rtems.h>
     25#include <rtems/error.h>
     26
    2527#include <shm.h>
    2628
     
    3941    case NO_INTERRUPT:
    4042       break;
     43
    4144    case LONG:
    4245      u32   = (rtems_unsigned32 *)intr->address;
     
    4548    default:
    4649      fprintf( stderr, "Shm_Cause_interrupt_pxfl: Unsupported length!!!\n" );
    47       rtems_shutdown_executive( 0 );
    48       break;
    4950  }
    5051}
Note: See TracChangeset for help on using the changeset viewer.