Changeset c64e4ed4 in rtems for c/src/lib/libbsp/hppa1.1
- Timestamp:
- 01/15/96 21:50:28 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- a625ccd
- Parents:
- 5c491aef
- 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 67 67 68 68 /* 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 } 74 rtems_device_driver Clock_control( 75 rtems_device_major_number major, 76 rtems_device_minor_number minor, 77 void *pargp 78 ); 79 80 /* 69 81 * We printf() to a buffer if multiprocessing, *or* if this is set. 70 * ref: src/lib/libbsp/hppa/ simhppa/iosupp/consupp.c82 * ref: src/lib/libbsp/hppa/pxfl/iosupp/consupp.c 71 83 */ 72 84 73 85 extern 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 74 99 75 100 /* … … 98 123 rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int); 99 124 125 rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int); 126 100 127 void bsp_start( void ); 101 128 void bsp_cleanup( void ); -
c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/getcfg.c
r5c491aef rc64e4ed4 36 36 37 37 #include <bsp.h> 38 #include <runway.h>39 38 40 39 #include <shm.h> … … 44 43 45 44 #define HPPA_RUNWAY_PROC_HPA_BASE ((void *) 0xFFFA0000) 46 45 47 46 /* given a processor number, where is its HPA? */ 48 47 #define HPPA_RUNWAY_HPA(cpu) \ 49 48 ((rtems_unsigned32) (HPPA_RUNWAY_PROC_HPA_BASE + ((cpu) * 0x2000))) 50 49 51 50 #define HPPA_RUNWAY_REG_IO_EIR_OFFSET 0x000 52 51 53 52 shm_config_table BSP_shm_cfgtbl; 54 53 55 void Shm_Cause_interrupt_pxfl( rtems_unsigned32 node );54 extern void Shm_Cause_interrupt_pxfl( rtems_unsigned32 node ); 56 55 57 56 void Shm_Get_configuration( -
c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/intr.c
r5c491aef rc64e4ed4 23 23 24 24 #include <rtems.h> 25 #include <rtems/error.h> 26 25 27 #include <shm.h> 26 28 … … 39 41 case NO_INTERRUPT: 40 42 break; 43 41 44 case LONG: 42 45 u32 = (rtems_unsigned32 *)intr->address; … … 45 48 default: 46 49 fprintf( stderr, "Shm_Cause_interrupt_pxfl: Unsupported length!!!\n" ); 47 rtems_shutdown_executive( 0 );48 break;49 50 } 50 51 }
Note: See TracChangeset
for help on using the changeset viewer.