Ticket #2444: 0001-m68k-mvme136-Remove.patch
File 0001-m68k-mvme136-Remove.patch, 58.0 KB (added by Aun-Ali Zaidi, on 12/08/15 at 02:49:23) |
---|
-
deleted file c/src/lib/libbsp/m68k/mvme136/Makefile.am
From 78100644afc354c706efbb8a920567a5828064c6 Mon Sep 17 00:00:00 2001 From: Aun-Ali Zaidi <admin@kodeit.net> Date: Mon, 7 Dec 2015 20:38:53 -0600 Subject: [PATCH 1/2] m68k/mvme136: Remove updates #2444. --- c/src/lib/libbsp/m68k/mvme136/Makefile.am | 62 ------- c/src/lib/libbsp/m68k/mvme136/bsp_specs | 13 -- c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c | 114 ------------ c/src/lib/libbsp/m68k/mvme136/configure.ac | 20 --- c/src/lib/libbsp/m68k/mvme136/console/console.c | 173 ------------------ c/src/lib/libbsp/m68k/mvme136/include/bsp.h | 81 --------- c/src/lib/libbsp/m68k/mvme136/include/coverhd.h | 106 ----------- c/src/lib/libbsp/m68k/mvme136/include/tm27.h | 36 ---- .../mvme136/make/custom/mvme136-testsuite.tcfg | 7 - .../libbsp/m68k/mvme136/make/custom/mvme136.cfg | 26 --- c/src/lib/libbsp/m68k/mvme136/preinstall.am | 76 -------- c/src/lib/libbsp/m68k/mvme136/shmsupp/addrconv.c | 29 --- c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c | 82 --------- c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c | 71 -------- c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c | 39 ---- c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c | 46 ----- c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c | 39 ---- c/src/lib/libbsp/m68k/mvme136/startup/linkcmds | 199 --------------------- c/src/lib/libbsp/m68k/mvme136/timer/timer.c | 85 --------- c/src/lib/libbsp/m68k/mvme136/timer/timerisr.S | 36 ---- c/src/lib/libbsp/m68k/mvme136/times | 189 ------------------- 21 files changed, 1529 deletions(-) delete mode 100644 c/src/lib/libbsp/m68k/mvme136/Makefile.am delete mode 100644 c/src/lib/libbsp/m68k/mvme136/bsp_specs delete mode 100644 c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/configure.ac delete mode 100644 c/src/lib/libbsp/m68k/mvme136/console/console.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/include/bsp.h delete mode 100644 c/src/lib/libbsp/m68k/mvme136/include/coverhd.h delete mode 100644 c/src/lib/libbsp/m68k/mvme136/include/tm27.h delete mode 100644 c/src/lib/libbsp/m68k/mvme136/make/custom/mvme136-testsuite.tcfg delete mode 100644 c/src/lib/libbsp/m68k/mvme136/make/custom/mvme136.cfg delete mode 100644 c/src/lib/libbsp/m68k/mvme136/preinstall.am delete mode 100644 c/src/lib/libbsp/m68k/mvme136/shmsupp/addrconv.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/startup/linkcmds delete mode 100644 c/src/lib/libbsp/m68k/mvme136/timer/timer.c delete mode 100644 c/src/lib/libbsp/m68k/mvme136/timer/timerisr.S delete mode 100644 c/src/lib/libbsp/m68k/mvme136/times diff --git a/c/src/lib/libbsp/m68k/mvme136/Makefile.am b/c/src/lib/libbsp/m68k/mvme136/Makefile.am deleted file mode 100644 index 2dbaef4..0000000
+ - 1 ACLOCAL_AMFLAGS = -I ../../../../aclocal2 3 include $(top_srcdir)/../../../../automake/compile.am4 5 include_bspdir = $(includedir)/bsp6 7 dist_project_lib_DATA = bsp_specs8 9 include_HEADERS = include/bsp.h10 include_HEADERS += include/tm27.h11 12 nodist_include_HEADERS = include/bspopts.h13 nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h14 DISTCLEANFILES = include/bspopts.h15 noinst_PROGRAMS =16 17 include_HEADERS += include/coverhd.h18 19 ## Zilog component header files20 include_rtems_zilogdir = $(includedir)/rtems/zilog21 include_rtems_zilog_HEADERS = ../../shared/include/zilog/z8036.h22 23 noinst_LIBRARIES = libbspstart.a24 libbspstart_a_SOURCES = ../../m68k/shared/start/start.S25 project_lib_DATA = start.$(OBJEXT)26 27 dist_project_lib_DATA += startup/linkcmds28 29 noinst_LIBRARIES += libbsp.a30 libbsp_a_SOURCES =31 32 # startup33 libbsp_a_SOURCES += startup/bspclean.c ../../shared/bsplibc.c \34 ../../shared/bsppost.c ../../shared/bsppredriverhook.c \35 startup/bspstart.c ../../shared/bootcard.c \36 ../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \37 ../../shared/sbrk.c ../../shared/setvec.c38 # gnatsupp39 libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c40 # clock41 libbsp_a_SOURCES += clock/ckinit.c42 # console43 libbsp_a_SOURCES += console/console.c44 # debugio45 libbsp_a_SOURCES += ../../shared/dummy_printk_support.c46 # timer47 libbsp_a_SOURCES += timer/timer.c timer/timerisr.S48 49 if HAS_MP50 # shmsupp51 libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \52 shmsupp/mpisr.c53 endif54 55 libbsp_a_LIBADD = \56 ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \57 ../../../libcpu/@RTEMS_CPU@/shared/misc.rel58 59 EXTRA_DIST = times60 61 include $(srcdir)/preinstall.am62 include $(top_srcdir)/../../../../automake/local.am -
deleted file c/src/lib/libbsp/m68k/mvme136/bsp_specs
diff --git a/c/src/lib/libbsp/m68k/mvme136/bsp_specs b/c/src/lib/libbsp/m68k/mvme136/bsp_specs deleted file mode 100644 index 5154de8..0000000
+ - 1 %rename endfile old_endfile2 %rename startfile old_startfile3 %rename link old_link4 5 *startfile:6 %{!qrtems: %(old_startfile)} \7 %{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e start}}8 9 *link:10 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}11 12 *endfile:13 %{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s crtn.o%s} -
deleted file c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c b/c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c deleted file mode 100644 index 02115c4..0000000
+ - 1 /*2 * This routine initializes the Z80386 1 on the MVME136 board.3 * The tick frequency is 1 millisecond.4 */5 6 /*7 * COPYRIGHT (c) 1989-1999.8 * On-Line Applications Research Corporation (OAR).9 *10 * The license and distribution terms for this file may be11 * found in the file LICENSE in this distribution or at12 * http://www.rtems.org/license/LICENSE.13 */14 15 #include <stdlib.h>16 17 #include <bsp.h>18 #include <rtems/zilog/z8036.h>19 20 #define MICRVAL 0xe2 /* disable lower chain, no vec */21 /* set right justified addr */22 /* and master int enable */23 #define MCCRVAL 0xc4 /* enable T1 and port B */24 /* timers independent */25 #define MS_COUNT 0x07d0 /* T1's countdown constant (1 ms) */26 #define T1MSRVAL 0x80 /* T1 cont. cycle/pulse output */27 #define T1CSRVAL 0xc6 /* enable interrupt, allow and */28 /* and trigger countdown */29 30 #define TIMER 0xfffb000031 #define RELOAD 0x24 /* clr IP & IUS,allow countdown */32 33 #define CLOCK_VECTOR 6634 35 uint32_t Clock_isrs; /* ISRs until next tick */36 37 volatile uint32_t Clock_driver_ticks; /* ticks since initialization */38 39 rtems_isr_entry Old_ticker;40 41 void Clock_exit( void );42 43 /*44 * ISR Handler45 */46 static rtems_isr Clock_isr(47 rtems_vector_number vector48 )49 {50 Clock_driver_ticks += 1;51 ((volatile struct z8036_map *) TIMER)->CT1_CMD_STATUS = RELOAD;52 53 if ( Clock_isrs == 1 ) {54 rtems_clock_tick();55 Clock_isrs = rtems_configuration_get_microseconds_per_tick() / 1000;56 }57 else58 Clock_isrs -= 1;59 }60 61 static void Install_clock(62 rtems_isr_entry clock_isr63 )64 {65 volatile struct z8036_map *timer;66 67 Clock_driver_ticks = 0;68 Clock_isrs = rtems_configuration_get_microseconds_per_tick() / 1000;69 70 Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );71 timer = (struct z8036_map *) 0xfffb0000;72 timer->MASTER_INTR = MICRVAL;73 timer->CT1_MODE_SPEC = T1MSRVAL;74 75 *((uint16_t*)0xfffb0016) = MS_COUNT; /* write countdown value */76 77 /*78 * timer->CT1_TIME_CONST_MSB = (MS_COUNT >> 8);79 * timer->CT1_TIME_CONST_LSB = (MS_COUNT & 0xff);80 */81 82 timer->MASTER_CFG = MCCRVAL;83 timer->CT1_CMD_STATUS = T1CSRVAL;84 85 /*86 * Enable interrupt via VME interrupt mask register87 */88 (*(uint8_t*)0xfffb0038) &= 0xfd;89 90 atexit( Clock_exit );91 }92 93 void Clock_exit( void )94 {95 volatile struct z8036_map *timer;96 97 timer = (struct z8036_map *) 0xfffb0000;98 timer->MASTER_INTR = 0x62;99 timer->CT1_MODE_SPEC = 0x00;100 timer->MASTER_CFG = 0xf4;101 timer->CT1_CMD_STATUS = 0x00;102 /* do not restore old vector */103 }104 105 rtems_device_driver Clock_initialize(106 rtems_device_major_number major,107 rtems_device_minor_number minor,108 void *pargp109 )110 {111 Install_clock( Clock_isr );112 113 return RTEMS_SUCCESSFUL;114 } -
deleted file c/src/lib/libbsp/m68k/mvme136/configure.ac
diff --git a/c/src/lib/libbsp/m68k/mvme136/configure.ac b/c/src/lib/libbsp/m68k/mvme136/configure.ac deleted file mode 100644 index 2a714b6..0000000
+ - 1 ## Process this file with autoconf to produce a configure script.2 3 AC_PREREQ([2.69])4 AC_INIT([rtems-c-src-lib-libbsp-m68k-mvme136],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])5 AC_CONFIG_SRCDIR([bsp_specs])6 RTEMS_TOP(../../../../../..)7 8 RTEMS_CANONICAL_TARGET_CPU9 AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])10 RTEMS_BSP_CONFIGURE11 12 RTEMS_PROG_CC_FOR_TARGET13 RTEMS_CANONICALIZE_TOOLS14 RTEMS_PROG_CCAS15 16 RTEMS_BSP_CLEANUP_OPTIONS(0, 0)17 18 # Explicitly list all Makefiles here19 AC_CONFIG_FILES([Makefile])20 AC_OUTPUT -
deleted file c/src/lib/libbsp/m68k/mvme136/console/console.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/console/console.c b/c/src/lib/libbsp/m68k/mvme136/console/console.c deleted file mode 100644 index ce8fa8d..0000000
+ - 1 /*2 * This file contains the MVME136 console IO package.3 */4 5 /*6 * COPYRIGHT (c) 1989-2014.7 * On-Line Applications Research Corporation (OAR).8 *9 * The license and distribution terms for this file may be10 * found in the file LICENSE in this distribution or at11 * http://www.rtems.org/license/LICENSE.12 */13 14 #include <bsp.h>15 #include <rtems/libio.h>16 17 volatile struct r_m681_info *_Read_m681; /* M68681 read registers */18 volatile struct w_m681_info *_Write_m681; /* M68681 write registers */19 20 /* console_initialize21 *22 * This routine initializes the console IO driver.23 */24 rtems_device_driver console_initialize(25 rtems_device_major_number major,26 rtems_device_minor_number minor,27 void *arg28 )29 {30 rtems_status_code status;31 32 _Write_m681 = ( struct w_m681_info * ) M681ADDR;33 _Read_m681 = ( struct r_m681_info * ) M681ADDR;34 35 status = rtems_io_register_name(36 "/dev/console",37 major,38 (rtems_device_minor_number) 039 );40 41 if (status != RTEMS_SUCCESSFUL)42 rtems_fatal_error_occurred(status);43 44 return RTEMS_SUCCESSFUL;45 }46 47 /* inbyte48 *49 * This routine reads a character from the UART.50 */51 static char inbyte( void )52 {53 while ( !(_Read_m681->srb & RXRDYB) );54 return _Read_m681->rbb;55 }56 57 /* outbyte58 *59 * This routine transmits a character out the M68681. It supports60 * XON/XOFF flow control.61 */62 static void outbyte(63 char ch64 )65 {66 while ( ! (_Read_m681->srb & TXRDYB) ) ;67 while ( _Read_m681->srb & RXRDYB ) /* must be an XOFF */68 if ( _Read_m681->rbb == XOFF )69 do {70 while ( ! (_Read_m681->srb & RXRDYB) ) ;71 } while ( _Read_m681->rbb != XON );72 73 _Write_m681->tbb = ch;74 if ( ch == '\n' )75 outbyte( CR );76 }77 78 /*79 * Open entry point80 */81 rtems_device_driver console_open(82 rtems_device_major_number major,83 rtems_device_minor_number minor,84 void * arg85 )86 {87 return RTEMS_SUCCESSFUL;88 }89 90 /*91 * Close entry point92 */93 rtems_device_driver console_close(94 rtems_device_major_number major,95 rtems_device_minor_number minor,96 void * arg97 )98 {99 return RTEMS_SUCCESSFUL;100 }101 102 /*103 * read bytes from the serial port. We only have stdin.104 */105 rtems_device_driver console_read(106 rtems_device_major_number major,107 rtems_device_minor_number minor,108 void * arg109 )110 {111 rtems_libio_rw_args_t *rw_args;112 char *buffer;113 int maximum;114 int count = 0;115 116 rw_args = (rtems_libio_rw_args_t *) arg;117 118 buffer = rw_args->buffer;119 maximum = rw_args->count;120 121 for (count = 0; count < maximum; count++) {122 buffer[ count ] = inbyte();123 if (buffer[ count ] == '\n' || buffer[ count ] == '\r') {124 buffer[ count++ ] = '\n';125 break;126 }127 }128 129 rw_args->bytes_moved = count;130 return (count >= 0) ? RTEMS_SUCCESSFUL : RTEMS_UNSATISFIED;131 }132 133 /*134 * write bytes to the serial port. Stdout and stderr are the same.135 */136 rtems_device_driver console_write(137 rtems_device_major_number major,138 rtems_device_minor_number minor,139 void * arg140 )141 {142 int count;143 int maximum;144 rtems_libio_rw_args_t *rw_args;145 char *buffer;146 147 rw_args = (rtems_libio_rw_args_t *) arg;148 149 buffer = rw_args->buffer;150 maximum = rw_args->count;151 152 for (count = 0; count < maximum; count++) {153 if ( buffer[ count ] == '\n') {154 outbyte('\r');155 }156 outbyte( buffer[ count ] );157 }158 159 rw_args->bytes_moved = maximum;160 return 0;161 }162 163 /*164 * IO Control entry point165 */166 rtems_device_driver console_control(167 rtems_device_major_number major,168 rtems_device_minor_number minor,169 void * arg170 )171 {172 return RTEMS_SUCCESSFUL;173 } -
deleted file c/src/lib/libbsp/m68k/mvme136/include/bsp.h
diff --git a/c/src/lib/libbsp/m68k/mvme136/include/bsp.h b/c/src/lib/libbsp/m68k/mvme136/include/bsp.h deleted file mode 100644 index 3ea2101..0000000
+ - 1 /*2 * This include file contains all MVME136 board IO definitions.3 */4 5 /*6 * COPYRIGHT (c) 1989-2014.7 * On-Line Applications Research Corporation (OAR).8 *9 * The license and distribution terms for this file may be10 * found in the file LICENSE in this distribution or at11 * http://www.rtems.org/license/LICENSE.12 */13 14 #ifndef LIBBSP_M68K_MVME136_BSP_H15 #define LIBBSP_M68K_MVME136_BSP_H16 17 #include <bspopts.h>18 #include <bsp/default-initial-extension.h>19 20 #include <rtems.h>21 #include <rtems/clockdrv.h>22 #include <rtems/console.h>23 #include <rtems/iosupp.h>24 25 #ifdef __cplusplus26 extern "C" {27 #endif28 29 /* Constants */30 31 #define RAM_START 032 #define RAM_END 0x10000033 34 #define M681ADDR 0xfffb0040 /* address of the M68681 chip */35 #define RXRDYB 0x01 /* status reg recv ready mask */36 #define TXRDYB 0x04 /* status reg trans ready mask */37 #define PARITYERR 0x20 /* status reg parity error mask */38 #define FRAMEERR 0x40 /* status reg frame error mask */39 40 #define FOREVER 1 /* infinite loop */41 42 /* Structures */43 44 struct r_m681_info {45 char fill1[ 5 ]; /* channel A regs ( not used ) */46 char isr; /* interrupt status reg */47 char fill2[ 2 ]; /* counter regs (not used) */48 char mr1mr2b; /* MR1B and MR2B regs */49 char srb; /* status reg channel B */50 char fill3; /* do not access */51 char rbb; /* receive buffer channel B */52 char ivr; /* interrupt vector register */53 };54 55 struct w_m681_info {56 char fill1[ 4 ]; /* channel A regs (not used) */57 char acr; /* auxillary control reg */58 char imr; /* interrupt mask reg */59 char fill2[ 2 ]; /* counter regs (not used) */60 char mr1mr2b; /* MR1B and MR2B regs */61 char csrb; /* clock select reg */62 char crb; /* command reg */63 char tbb; /* transmit buffer channel B */64 char ivr; /* interrupt vector register */65 };66 67 extern rtems_isr_entry M68Kvec[]; /* vector table address */68 69 /* functions */70 71 rtems_isr_entry set_vector(72 rtems_isr_entry handle,73 rtems_vector_number vector,74 int type75 );76 77 #ifdef __cplusplus78 }79 #endif80 81 #endif -
deleted file c/src/lib/libbsp/m68k/mvme136/include/coverhd.h
diff --git a/c/src/lib/libbsp/m68k/mvme136/include/coverhd.h b/c/src/lib/libbsp/m68k/mvme136/include/coverhd.h deleted file mode 100644 index 025b9cd..0000000
+ - 1 /**2 * @file3 * @ingroup m68k_mvme1364 * @brief C Overhead definitions5 */6 7 /*8 *9 * This include file has defines to represent the overhead associated10 * with calling a particular directive from C on this target.11 *12 * COPYRIGHT (c) 1989-1999.13 * On-Line Applications Research Corporation (OAR).14 *15 * The license and distribution terms for this file may be16 * found in the file LICENSE in this distribution or at17 * http://www.rtems.org/license/LICENSE.18 */19 20 #ifndef __COVERHD_h21 #define __COVERHD_h22 23 #ifdef __cplusplus24 extern "C" {25 #endif26 27 #define CALLING_OVERHEAD_INITIALIZE_EXECUTIVE 228 #define CALLING_OVERHEAD_SHUTDOWN_EXECUTIVE 129 #define CALLING_OVERHEAD_TASK_CREATE 330 #define CALLING_OVERHEAD_TASK_IDENT 231 #define CALLING_OVERHEAD_TASK_START 232 #define CALLING_OVERHEAD_TASK_RESTART 233 #define CALLING_OVERHEAD_TASK_DELETE 134 #define CALLING_OVERHEAD_TASK_SUSPEND 135 #define CALLING_OVERHEAD_TASK_RESUME 236 #define CALLING_OVERHEAD_TASK_SET_PRIORITY 237 #define CALLING_OVERHEAD_TASK_MODE 238 #define CALLING_OVERHEAD_TASK_GET_NOTE 239 #define CALLING_OVERHEAD_TASK_SET_NOTE 240 #define CALLING_OVERHEAD_TASK_WAKE_WHEN 441 #define CALLING_OVERHEAD_TASK_WAKE_AFTER 142 #define CALLING_OVERHEAD_INTERRUPT_CATCH 243 #define CALLING_OVERHEAD_CLOCK_GET 544 #define CALLING_OVERHEAD_CLOCK_SET 445 #define CALLING_OVERHEAD_CLOCK_TICK 146 47 #define CALLING_OVERHEAD_TIMER_CREATE 248 #define CALLING_OVERHEAD_TIMER_IDENT 149 #define CALLING_OVERHEAD_TIMER_DELETE 250 #define CALLING_OVERHEAD_TIMER_FIRE_AFTER 251 #define CALLING_OVERHEAD_TIMER_FIRE_WHEN 552 #define CALLING_OVERHEAD_TIMER_RESET 153 #define CALLING_OVERHEAD_TIMER_CANCEL 154 #define CALLING_OVERHEAD_SEMAPHORE_CREATE 355 #define CALLING_OVERHEAD_SEMAPHORE_DELETE 156 #define CALLING_OVERHEAD_SEMAPHORE_IDENT 257 #define CALLING_OVERHEAD_SEMAPHORE_OBTAIN 258 #define CALLING_OVERHEAD_SEMAPHORE_RELEASE 159 #define CALLING_OVERHEAD_MESSAGE_QUEUE_CREATE 260 #define CALLING_OVERHEAD_MESSAGE_QUEUE_IDENT 261 #define CALLING_OVERHEAD_MESSAGE_QUEUE_DELETE 162 #define CALLING_OVERHEAD_MESSAGE_QUEUE_SEND 263 #define CALLING_OVERHEAD_MESSAGE_QUEUE_URGENT 264 #define CALLING_OVERHEAD_MESSAGE_QUEUE_BROADCAST 265 #define CALLING_OVERHEAD_MESSAGE_QUEUE_RECEIVE 366 #define CALLING_OVERHEAD_MESSAGE_QUEUE_FLUSH 267 68 #define CALLING_OVERHEAD_EVENT_SEND 269 #define CALLING_OVERHEAD_EVENT_RECEIVE 270 #define CALLING_OVERHEAD_SIGNAL_CATCH 271 #define CALLING_OVERHEAD_SIGNAL_SEND 272 #define CALLING_OVERHEAD_PARTITION_CREATE 373 #define CALLING_OVERHEAD_PARTITION_IDENT 274 #define CALLING_OVERHEAD_PARTITION_DELETE 175 #define CALLING_OVERHEAD_PARTITION_GET_BUFFER 276 #define CALLING_OVERHEAD_PARTITION_RETURN_BUFFER 277 #define CALLING_OVERHEAD_REGION_CREATE 378 #define CALLING_OVERHEAD_REGION_IDENT 279 #define CALLING_OVERHEAD_REGION_DELETE 280 #define CALLING_OVERHEAD_REGION_GET_SEGMENT 381 #define CALLING_OVERHEAD_REGION_RETURN_SEGMENT 282 #define CALLING_OVERHEAD_PORT_CREATE 383 #define CALLING_OVERHEAD_PORT_IDENT 284 #define CALLING_OVERHEAD_PORT_DELETE 185 #define CALLING_OVERHEAD_PORT_EXTERNAL_TO_INTERNAL 286 #define CALLING_OVERHEAD_PORT_INTERNAL_TO_EXTERNAL 287 88 #define CALLING_OVERHEAD_IO_INITIALIZE 289 #define CALLING_OVERHEAD_IO_OPEN 290 #define CALLING_OVERHEAD_IO_CLOSE 391 #define CALLING_OVERHEAD_IO_READ 292 #define CALLING_OVERHEAD_IO_WRITE 293 #define CALLING_OVERHEAD_IO_CONTROL 294 #define CALLING_OVERHEAD_FATAL_ERROR_OCCURRED 195 #define CALLING_OVERHEAD_RATE_MONOTONIC_CREATE 296 #define CALLING_OVERHEAD_RATE_MONOTONIC_IDENT 297 #define CALLING_OVERHEAD_RATE_MONOTONIC_DELETE 198 #define CALLING_OVERHEAD_RATE_MONOTONIC_CANCEL 199 #define CALLING_OVERHEAD_RATE_MONOTONIC_PERIOD 2100 #define CALLING_OVERHEAD_MULTIPROCESSING_ANNOUNCE 1101 102 #ifdef __cplusplus103 }104 #endif105 106 #endif -
deleted file c/src/lib/libbsp/m68k/mvme136/include/tm27.h
diff --git a/c/src/lib/libbsp/m68k/mvme136/include/tm27.h b/c/src/lib/libbsp/m68k/mvme136/include/tm27.h deleted file mode 100644 index 66771bf..0000000
+ - 1 /*2 * @file3 * @ingroup m68k_mvme1364 * @brief Implementations for interrupt mechanisms for Time Test 275 */6 7 /*8 * The license and distribution terms for this file may be9 * found in the file LICENSE in this distribution or at10 * http://www.rtems.org/license/LICENSE.11 */12 13 #ifndef _RTEMS_TMTEST2714 #error "This is an RTEMS internal file you must not include directly."15 #endif16 17 #ifndef __tm27_h18 #define __tm27_h19 20 /*21 * Define the interrupt mechanism for Time Test 2722 *23 * NOTE: Use the MPCSR vector for the MVME13624 */25 26 #define MUST_WAIT_FOR_INTERRUPT 027 28 #define Install_tm27_vector( handler ) set_vector( (handler), 75, 1 )29 30 #define Cause_tm27_intr() (*(volatile uint8_t*)0xfffb006b) = 0x8031 32 #define Clear_tm27_intr() (*(volatile uint8_t*)0xfffb006b) = 0x0033 34 #define Lower_tm27_intr() /* empty */35 36 #endif -
deleted file c/src/lib/libbsp/m68k/mvme136/make/custom/mvme136-testsuite.tcfg
diff --git a/c/src/lib/libbsp/m68k/mvme136/make/custom/mvme136-testsuite.tcfg b/c/src/lib/libbsp/m68k/mvme136/make/custom/mvme136-testsuite.tcfg deleted file mode 100644 index e8bff63..0000000
+ - 1 #2 # mvme136 RTEMS Test Database3 #4 # Format is one line per test that is _NOT_ built.5 #6 7 fsdosfsname01 -
deleted file c/src/lib/libbsp/m68k/mvme136/make/custom/mvme136.cfg
diff --git a/c/src/lib/libbsp/m68k/mvme136/make/custom/mvme136.cfg b/c/src/lib/libbsp/m68k/mvme136/make/custom/mvme136.cfg deleted file mode 100644 index c90a7a3..0000000
+ - 1 #2 # Config file for the mvme136 BSP3 #4 5 include $(RTEMS_ROOT)/make/custom/default.cfg6 7 RTEMS_CPU=m68k8 RTEMS_CPU_MODEL=m680209 10 #11 # This contains the compiler options necessary to select the CPU model12 # and (hopefully) optimize for it.13 #14 CPU_CFLAGS = -mcpu=6802015 16 # optimize flag: typically -O217 CFLAGS_OPTIMIZE_V = -Os -g -fomit-frame-pointer18 19 define bsp-post-link20 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec21 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \22 $(PACKHEX) > $(basename $@)$(DOWNEXT)23 rm -f $(basename $@).srec24 $(default-bsp-post-link)25 endef26 -
deleted file c/src/lib/libbsp/m68k/mvme136/preinstall.am
diff --git a/c/src/lib/libbsp/m68k/mvme136/preinstall.am b/c/src/lib/libbsp/m68k/mvme136/preinstall.am deleted file mode 100644 index 4f605dc..0000000
+ - 1 ## Automatically generated by ampolish3 - Do not edit2 3 if AMPOLISH34 $(srcdir)/preinstall.am: Makefile.am5 $(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am6 endif7 8 PREINSTALL_DIRS =9 DISTCLEANFILES += $(PREINSTALL_DIRS)10 11 all-am: $(PREINSTALL_FILES)12 13 PREINSTALL_FILES =14 CLEANFILES = $(PREINSTALL_FILES)15 16 all-local: $(TMPINSTALL_FILES)17 18 TMPINSTALL_FILES =19 CLEANFILES += $(TMPINSTALL_FILES)20 21 $(PROJECT_LIB)/$(dirstamp):22 @$(MKDIR_P) $(PROJECT_LIB)23 @: > $(PROJECT_LIB)/$(dirstamp)24 PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)25 26 $(PROJECT_INCLUDE)/$(dirstamp):27 @$(MKDIR_P) $(PROJECT_INCLUDE)28 @: > $(PROJECT_INCLUDE)/$(dirstamp)29 PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)30 31 $(PROJECT_INCLUDE)/bsp/$(dirstamp):32 @$(MKDIR_P) $(PROJECT_INCLUDE)/bsp33 @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)34 PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)35 36 $(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)37 $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs38 PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs39 40 $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)41 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h42 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h43 44 $(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)45 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h46 PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h47 48 $(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)49 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h50 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h51 52 $(PROJECT_INCLUDE)/bsp/bootcard.h: ../../shared/include/bootcard.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)53 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bootcard.h54 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h55 56 $(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)57 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h58 PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h59 60 $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp):61 @$(MKDIR_P) $(PROJECT_INCLUDE)/rtems/zilog62 @: > $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)63 PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)64 65 $(PROJECT_INCLUDE)/rtems/zilog/z8036.h: ../../shared/include/zilog/z8036.h $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp)66 $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/zilog/z8036.h67 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/zilog/z8036.h68 69 $(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)70 $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)71 TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)72 73 $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)74 $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds75 PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds76 -
deleted file c/src/lib/libbsp/m68k/mvme136/shmsupp/addrconv.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/shmsupp/addrconv.c b/c/src/lib/libbsp/m68k/mvme136/shmsupp/addrconv.c deleted file mode 100644 index 82ad28b..0000000
+ - 1 /* Shm_Convert_address2 *3 * This MVME136 has a "normal" view of the VME address space.4 * No address range conversion is required.5 *6 * Input parameters:7 * address - address to convert8 *9 * Output parameters:10 * returns - converted address11 *12 * COPYRIGHT (c) 1989-1999.13 * On-Line Applications Research Corporation (OAR).14 *15 * The license and distribution terms for this file may be16 * found in the file LICENSE in this distribution or at17 * http://www.rtems.org/license/LICENSE.18 */19 20 #include <rtems.h>21 #include <bsp.h>22 #include <shm_driver.h>23 24 void *Shm_Convert_address(25 void *address26 )27 {28 return ( address );29 } -
deleted file c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c b/c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c deleted file mode 100644 index 7057369..0000000
+ - 1 /* void Shm_Get_configuration( localnode, &shmcfg )2 *3 * This routine initializes, if necessary, and returns a pointer4 * to the Shared Memory Configuration Table for the Cyclone CVME961.5 *6 * INPUT PARAMETERS:7 * localnode - local node number8 * shmcfg - address of pointer to SHM Config Table9 *10 * OUTPUT PARAMETERS:11 * *shmcfg - pointer to SHM Config Table12 *13 * NOTES: The MPCSR interrupt on the MVME136 is used as an interprocessor14 * interrupt. The capablities of the MPCSR are used to generate15 * interprocessor interrupts for up to eight nodes.16 *17 * The following table illustrates the configuration limitations:18 *19 * BUS MAX20 * MODE ENDIAN NODES21 * ========= ====== =======22 * POLLED LITTLE 2+23 * INTERRUPT LITTLE 2-824 *25 * COPYRIGHT (c) 1989-1999.26 * On-Line Applications Research Corporation (OAR).27 *28 * The license and distribution terms for this file may be29 * found in the file LICENSE in this distribution or at30 * http://www.rtems.org/license/LICENSE.31 */32 33 #include <rtems.h>34 #include "shm_driver.h"35 36 #define INTERRUPT 1 /* MVME136 target supports both */37 #define POLLING 0 /* polling and interrupt modes */38 39 shm_config_table BSP_shm_cfgtbl;40 41 uint32_t *BSP_int_address()42 {43 uint32_t id, offset;44 45 id = (uint32_t) *(uint8_t*)0xfffb0061;46 offset = ((id & 0x1f) << 5) | ((id & 0xe0) << 8);47 offset |= 0xffff000b;48 return( (uint32_t * ) offset );49 }50 51 void Shm_Get_configuration(52 uint32_t localnode,53 shm_config_table **shmcfg54 )55 {56 BSP_shm_cfgtbl.base = (uint32_t*)0x20000000;57 BSP_shm_cfgtbl.length = 1 * MEGABYTE;58 BSP_shm_cfgtbl.format = SHM_BIG;59 60 BSP_shm_cfgtbl.cause_intr = Shm_Cause_interrupt;61 62 #ifdef NEUTRAL_BIG63 BSP_shm_cfgtbl.convert = NULL_CONVERT;64 #else65 BSP_shm_cfgtbl.convert = CPU_swap_u32;66 #endif67 68 #if (POLLING==1)69 BSP_shm_cfgtbl.poll_intr = POLLED_MODE;70 BSP_shm_cfgtbl.Intr.address = NO_INTERRUPT;71 BSP_shm_cfgtbl.Intr.value = NO_INTERRUPT;72 BSP_shm_cfgtbl.Intr.length = NO_INTERRUPT;73 #else74 BSP_shm_cfgtbl.poll_intr = INTR_MODE;75 BSP_shm_cfgtbl.Intr.address = BSP_int_address();76 BSP_shm_cfgtbl.Intr.value = 0x80;77 BSP_shm_cfgtbl.Intr.length = BYTE;78 #endif79 80 *shmcfg = &BSP_shm_cfgtbl;81 82 } -
deleted file c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c b/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c deleted file mode 100644 index 129de01..0000000
+ - 1 /* Shared Memory Lock Routines2 *3 * This shared memory locked queue support routine need to be4 * able to lock the specified locked queue. Interrupts are5 * disabled while the queue is locked to prevent preemption6 * and deadlock when two tasks poll for the same lock.7 * previous level.8 *9 * COPYRIGHT (c) 1989-1999.10 * On-Line Applications Research Corporation (OAR).11 *12 * The license and distribution terms for this file may be13 * found in the file LICENSE in this distribution or at14 * http://www.rtems.org/license/LICENSE.15 */16 17 #include <rtems.h>18 #include <bsp.h>19 #include <shm_driver.h>20 21 /*22 * Shm_Initialize_lock23 *24 * Initialize the lock for the specified locked queue.25 */26 27 void Shm_Initialize_lock(28 Shm_Locked_queue_Control *lq_cb29 )30 {31 lq_cb->lock = LQ_UNLOCKED;32 }33 34 /* void _Shm_Lock( &lq_cb )35 *36 * This shared memory locked queue support routine locks the37 * specified locked queue. It disables interrupts to prevent38 * a deadlock condition.39 */40 41 void Shm_Lock(42 Shm_Locked_queue_Control *lq_cb43 )44 {45 uint32_t isr_level;46 uint32_t *lockptr = (uint32_t*)&lq_cb->lock;47 48 rtems_interrupt_disable( isr_level );49 Shm_isrstat = isr_level;50 __asm__ volatile( "lockit:" : : );51 __asm__ volatile( "tas %0@" : "=a" (lockptr) : "0" (lockptr) );52 __asm__ volatile( "bne lockit" : : );53 /* should delay */54 }55 56 /*57 * Shm_Unlock58 *59 * Unlock the lock for the specified locked queue.60 */61 62 void Shm_Unlock(63 Shm_Locked_queue_Control *lq_cb64 )65 {66 uint32_t isr_level;67 68 lq_cb->lock = SHM_UNLOCK_VALUE;69 isr_level = Shm_isrstat;70 rtems_interrupt_enable( isr_level );71 } -
deleted file c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c b/c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c deleted file mode 100644 index 0788378..0000000
+ - 1 /* Shm_isr_mvme136()2 *3 * NOTE: This routine is not used when in polling mode. Either4 * this routine OR Shm_clockisr is used in a particular system.5 *6 * COPYRIGHT (c) 1989-1999.7 * On-Line Applications Research Corporation (OAR).8 *9 * The license and distribution terms for this file may be10 * found in the file LICENSE in this distribution or at11 * http://www.rtems.org/license/LICENSE.12 */13 14 #include <rtems.h>15 #include <bsp.h>16 #include <shm_driver.h>17 18 rtems_isr Shm_isr_mvme136()19 {20 Shm_Interrupt_count += 1;21 rtems_multiprocessing_announce();22 (*(volatile uint8_t*)0xfffb006b) = 0; /* clear MPCSR intr */23 }24 25 /* void _Shm_setvec( )26 *27 * This driver routine sets the SHM interrupt vector to point to the28 * driver's SHM interrupt service routine.29 *30 * Input parameters: NONE31 *32 * Output parameters: NONE33 */34 35 void Shm_setvec()36 {37 /* may need to disable intr */38 set_vector( Shm_isr_mvme136, 75, 1 );39 } -
deleted file c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c b/c/src/lib/libbsp/m68k/mvme136/startup/bspclean.c deleted file mode 100644 index 5d968b8..0000000
+ - 1 /*2 * This routine returns control to 135Bug.3 *4 * COPYRIGHT (c) 1989-1999.5 * On-Line Applications Research Corporation (OAR).6 *7 * The license and distribution terms for this file may be8 * found in the file LICENSE in this distribution or at9 * http://www.rtems.org/license/LICENSE.10 */11 12 #include <bsp.h>13 #include <bsp/bootcard.h>14 #include <rtems/zilog/z8036.h>15 16 void start(void);17 18 static rtems_isr bsp_return_to_monitor_trap(rtems_vector_number ignored)19 {20 register volatile void *start_addr;21 22 m68k_set_vbr( 0 ); /* restore 135Bug vectors */23 __asm__ volatile( "trap #15" ); /* trap to 135Bug */24 __asm__ volatile( ".short 0x63" ); /* return to 135Bug (.RETURN) */25 /* restart program */26 start_addr = start;27 28 __asm__ volatile ( "jmp %0@" : "=a" (start_addr) : "0" (start_addr) );29 }30 31 #define TIMER 0xfffb000032 33 void bsp_fatal_extension(34 rtems_fatal_source source,35 bool is_internal,36 rtems_fatal_code error37 )38 {39 Z8x36_WRITE( TIMER, MASTER_INTR, 0x62 ); /* redo timer */40 Z8x36_WRITE( TIMER, CT1_MODE_SPEC, 0x00 );41 Z8x36_WRITE( TIMER, MASTER_CFG, 0xf4 );42 Z8x36_WRITE( TIMER, CT1_CMD_STATUS, 0x00 );43 44 M68Kvec[ 45 ] = bsp_return_to_monitor_trap; /* install handler */45 __asm__ volatile( "trap #13" ); /* insures SUPV mode */46 } -
deleted file c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c b/c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c deleted file mode 100644 index 04d073d..0000000
+ - 1 /*2 * This routine does the bulk of the system initialization.3 */4 5 /*6 * COPYRIGHT (c) 1989-1999.7 * On-Line Applications Research Corporation (OAR).8 *9 * The license and distribution terms for this file may be10 * found in the file LICENSE in this distribution or at11 * http://www.rtems.org/license/LICENSE.12 */13 14 #include <bsp.h>15 #include <bsp/bootcard.h>16 #include <rtems/zilog/z8036.h>17 18 void bsp_start( void )19 {20 rtems_isr_entry *monitors_vector_table;21 int index;22 23 monitors_vector_table = (rtems_isr_entry *)0; /* 135Bug Vectors are at 0 */24 m68k_set_vbr( monitors_vector_table );25 26 for ( index=2 ; index<=255 ; index++ )27 M68Kvec[ index ] = monitors_vector_table[ 32 ];28 29 M68Kvec[ 2 ] = monitors_vector_table[ 2 ]; /* bus error vector */30 M68Kvec[ 4 ] = monitors_vector_table[ 4 ]; /* breakpoints vector */31 M68Kvec[ 9 ] = monitors_vector_table[ 9 ]; /* trace vector */32 M68Kvec[ 47 ] = monitors_vector_table[ 47 ]; /* system call vector */33 34 m68k_set_vbr( &M68Kvec );35 36 (*(uint8_t*)0xfffb0067) = 0x7f; /* make VME access round-robin */37 38 rtems_cache_enable_instruction();39 } -
deleted file c/src/lib/libbsp/m68k/mvme136/startup/linkcmds
diff --git a/c/src/lib/libbsp/m68k/mvme136/startup/linkcmds b/c/src/lib/libbsp/m68k/mvme136/startup/linkcmds deleted file mode 100644 index ad4cba6..0000000
+ - 1 /*2 * This file contains directives for the GNU linker which are specific3 * to the Motorola MVME136/MVME135 boards.4 *5 * COPYRIGHT (c) 1989-2007.6 * On-Line Applications Research Corporation (OAR).7 *8 * The license and distribution terms for this file may be9 * found in the file LICENSE in this distribution or at10 * http://www.rtems.org/license/LICENSE.11 */12 13 /*14 * Declare some sizes.15 */16 RamBase = DEFINED(RamBase) ? RamBase : 0x0;17 RamSize = DEFINED(RamSize) ? RamSize : 1M;18 HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;19 _StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;20 21 MEMORY22 {23 ram : org = 0x0, l = 1M24 }25 26 SECTIONS27 {28 ram : {29 . = 0x3000;30 } >ram31 32 /*33 * Text, data and bss segments34 */35 .text : {36 *(.text*)37 38 /*39 * C++ constructors/destructors40 *41 * Various files can provide initialization and finalization42 * functions. crtbegin.o and crtend.o are two instances. The43 * body of these functions are in .init and .fini sections. We44 * accumulate the bodies here, and prepend function prologues45 * from crti.o and function epilogues from crtn.o. crti.o must46 * be linked first; crtn.o must be linked last. Because these47 * are wildcards, it doesn't matter if the user does not48 * actually link against crti.o and crtn.o; the linker won't49 * look for a file to match a wildcard. The wildcard also50 * means that it doesn't matter which directory crti.o and51 * crtn.o are in.52 */53 *(.gnu.linkonce.t.*)54 55 /*56 * Initialization and finalization code.57 *58 * gcc uses crtbegin.o to find the start of the constructors59 * and destructors so we make sure it is first. Because this60 * is a wildcard, it doesn't matter if the user does not61 * actually link against crtbegin.o; the linker won't look for62 * a file to match a wildcard. The wildcard also means that63 * it doesn't matter which directory crtbegin.o is in. The64 * constructor and destructor list are terminated in65 * crtend.o. The same comments apply to it.66 */67 PROVIDE (_init = .);68 *crti.o(.init)69 *(.init)70 *crtn.o(.init)71 PROVIDE (_fini = .);72 *crti.o(.fini)73 *(.fini)74 *crtn.o(.fini)75 76 /*77 * Special FreeBSD sysctl sections.78 */79 . = ALIGN (16);80 __start_set_sysctl_set = .;81 *(set_sysctl_*);82 __stop_set_sysctl_set = ABSOLUTE(.);83 *(set_domain_*);84 *(set_pseudo_*);85 86 /*87 * C++ constructors/destructors88 */89 . = ALIGN (16);90 *crtbegin.o(.ctors)91 *(.ctors)92 *crtend.o(.ctors)93 *crtbegin.o(.dtors)94 *(.dtors)95 *crtend.o(.dtors)96 97 /*98 * Exception frame info99 */100 . = ALIGN (16);101 *(.eh_frame)102 103 /*104 * Read-only data105 */106 . = ALIGN (16);107 _rodata_start = .;108 *(.rodata*)109 *(.gnu.linkonce.r*)110 111 . = ALIGN (16);112 PROVIDE (_etext = .);113 } >ram114 115 .tdata : {116 _TLS_Data_begin = .;117 *(.tdata .tdata.* .gnu.linkonce.td.*)118 _TLS_Data_end = .;119 } >ram120 121 .tbss : {122 _TLS_BSS_begin = .;123 *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon)124 _TLS_BSS_end = .;125 } >ram126 127 _TLS_Data_size = _TLS_Data_end - _TLS_Data_begin;128 _TLS_Data_begin = _TLS_Data_size != 0 ? _TLS_Data_begin : _TLS_BSS_begin;129 _TLS_Data_end = _TLS_Data_size != 0 ? _TLS_Data_end : _TLS_BSS_begin;130 _TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin;131 _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;132 _TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));133 134 .data : {135 PROVIDE (_copy_start = .);136 *(.data*)137 *(.gnu.linkonce.d*)138 *(.gcc_except_table*)139 *(.jcr)140 . = ALIGN (16);141 PROVIDE (_edata = .);142 PROVIDE (_copy_end = .);143 } >ram144 .bss : {145 _clear_start = .;146 *(.dynbss)147 *(.bss* .gnu.linkonce.b.*)148 *(COMMON)149 . = ALIGN (16);150 PROVIDE (end = .);151 152 . += _StackSize;153 . = ALIGN (16);154 _stack_init = .;155 _clear_end = .;156 157 WorkAreaBase = .;158 } >ram159 160 /* Stabs debugging sections. */161 .stab 0 : { *(.stab) }162 .stabstr 0 : { *(.stabstr) }163 .stab.excl 0 : { *(.stab.excl) }164 .stab.exclstr 0 : { *(.stab.exclstr) }165 .stab.index 0 : { *(.stab.index) }166 .stab.indexstr 0 : { *(.stab.indexstr) }167 .comment 0 : { *(.comment) }168 169 /* DWARF debug sections.170 Symbols in the DWARF debugging sections are relative to the beginning171 of the section so we begin them at 0. */172 /* DWARF 1 */173 .debug 0 : { *(.debug) }174 .line 0 : { *(.line) }175 176 /* GNU DWARF 1 extensions */177 .debug_srcinfo 0 : { *(.debug_srcinfo) }178 .debug_sfnames 0 : { *(.debug_sfnames) }179 180 /* DWARF 1.1 and DWARF 2 */181 .debug_aranges 0 : { *(.debug_aranges) }182 .debug_pubnames 0 : { *(.debug_pubnames) }183 184 /* DWARF 2 */185 .debug_info 0 : { *(.debug_info) }186 .debug_abbrev 0 : { *(.debug_abbrev) }187 .debug_line 0 : { *(.debug_line) }188 .debug_frame 0 : { *(.debug_frame) }189 .debug_str 0 : { *(.debug_str) }190 .debug_loc 0 : { *(.debug_loc) }191 .debug_macinfo 0 : { *(.debug_macinfo) }192 193 /* SGI/MIPS DWARF 2 extensions */194 .debug_weaknames 0 : { *(.debug_weaknames) }195 .debug_funcnames 0 : { *(.debug_funcnames) }196 .debug_typenames 0 : { *(.debug_typenames) }197 .debug_varnames 0 : { *(.debug_varnames) }198 /* These must appear regardless of . */199 } -
deleted file c/src/lib/libbsp/m68k/mvme136/timer/timer.c
diff --git a/c/src/lib/libbsp/m68k/mvme136/timer/timer.c b/c/src/lib/libbsp/m68k/mvme136/timer/timer.c deleted file mode 100644 index a9bf322..0000000
+ - 1 /*2 * COPYRIGHT (c) 1989-1999.3 * On-Line Applications Research Corporation (OAR).4 *5 * The license and distribution terms for this file may be6 * found in the file LICENSE in this distribution or at7 * http://www.rtems.org/license/LICENSE.8 */9 10 #include <rtems/btimer.h>11 #include <bsp.h>12 #include <rtems/zilog/z8036.h>13 14 #define TIMER 0xfffb0000 /* address of Z8036 on MVME136 */15 16 int Ttimer_val;17 bool benchmark_timer_find_average_overhead;18 19 rtems_isr timerisr(rtems_vector_number);20 21 void benchmark_timer_initialize(void)22 {23 (void) set_vector( timerisr, 66, 0 ); /* install ISR */24 25 Ttimer_val = 0; /* clear timer ISR count */26 Z8x36_WRITE( TIMER, MASTER_INTR, 0x01 ); /* reset */27 Z8x36_WRITE( TIMER, MASTER_INTR, 0x00 ); /* clear reset */28 Z8x36_WRITE( TIMER, MASTER_INTR, 0xe2 ); /* disable lower chain, no vec */29 /* set right justified addr */30 /* and master int enable */31 Z8x36_WRITE( TIMER, CT1_MODE_SPEC, 0x80 ); /* T1 continuous, and */32 /* cycle/pulse output */33 34 *((uint16_t*)0xfffb0016) = 0x0000; /* write countdown value */35 /*36 Z8x36_WRITE( TIMER, CT1_TIME_CONST_MSB, 0x00 );37 Z8x36_WRITE( TIMER, CT1_TIME_CONST_LSB, 0x00 );38 */39 Z8x36_WRITE( TIMER, MASTER_CFG, 0xc4 ); /* enable timer1 */40 41 Z8x36_WRITE( TIMER, CT1_CMD_STATUS, 0xc6 ); /* set INTR enable (IE), */42 /* trigger command */43 /* (TCB) and gate */44 /* command (GCB) bits */45 *((uint8_t*)0xfffb0038) &= 0xfd; /* enable timer INTR on */46 /* VME controller */47 }48 49 #define AVG_OVERHEAD 6 /* It typically takes 3.0 microseconds */50 /* (6 countdowns) to start/stop the timer. */51 #define LEAST_VALID 10 /* Don't trust a value lower than this */52 53 benchmark_timer_t benchmark_timer_read(void)54 {55 /*56 uint8_t msb, lsb;57 */58 uint32_t remaining, total;59 60 Z8x36_WRITE( TIMER, CT1_CMD_STATUS, 0xce ); /* read the counter value */61 remaining = 0xffff - *((uint16_t*) 0xfffb0010);62 /*63 Z8x36_READ( TIMER, CT1_CUR_CNT_MSB, msb );64 Z8x36_READ( TIMER, CT1_CUR_CNT_LSB, lsb );65 66 remaining = 0xffff - ((msb << 8) + lsb);67 */68 total = (Ttimer_val * 0x10000) + remaining;69 70 if ( benchmark_timer_find_average_overhead == true )71 return total; /* in one-half microsecond units */72 73 else {74 if ( total < LEAST_VALID )75 return 0; /* below timer resolution */76 return (total-AVG_OVERHEAD) >> 1;77 }78 }79 80 void benchmark_timer_disable_subtracting_average_overhead(81 bool find_flag82 )83 {84 benchmark_timer_find_average_overhead = find_flag;85 } -
deleted file c/src/lib/libbsp/m68k/mvme136/timer/timerisr.S
diff --git a/c/src/lib/libbsp/m68k/mvme136/timer/timerisr.S b/c/src/lib/libbsp/m68k/mvme136/timer/timerisr.S deleted file mode 100644 index dda8770..0000000
+ - 1 /* timer_isr()2 *3 * This routine provides the ISR for the Z8036 timer on the MVME1364 * board. The timer is set up to generate an interrupt at maximum5 * intervals.6 *7 * Input parameters: NONE8 *9 * Output parameters: NONE10 *11 * COPYRIGHT (c) 1989-1999.12 * On-Line Applications Research Corporation (OAR).13 *14 * The license and distribution terms for this file may be15 * found in the file LICENSE in this distribution or at16 * http://www.rtems.org/license/LICENSE.17 */18 19 #include <rtems/asm.h>20 21 BEGIN_CODE22 23 .set CT1_CMD_STATUS, 0xfffb000a | port A24 .set RELOAD, 0x24 | clr IP & IUS,allow countdown25 26 PUBLIC (timerisr)27 SYM (timerisr):28 movl a0,a7@- | save a029 movl #CT1_CMD_STATUS,a0 | a0 = addr of cmd status reg30 movb #RELOAD,a0@ | reload countdown31 addql #1, SYM (Ttimer_val) | increment timer value32 movl a7@+,a0 | save a033 rte34 35 END_CODE36 END -
deleted file c/src/lib/libbsp/m68k/mvme136/times
diff --git a/c/src/lib/libbsp/m68k/mvme136/times b/c/src/lib/libbsp/m68k/mvme136/times deleted file mode 100644 index 527a3d2..0000000
+ - 1 #2 # Timing Test Suite Results for the Motorola MVME136 BSP3 #4 5 Board: Motorola MVME1366 CPU: Motorola MC68020 + MC68881 FPU7 Clock Speed: 20 Mhz8 Memory Configuration: DRAM w/no cache9 Wait States: 1 wait state10 11 Times Reported in: microseconds12 Timer Source: Zilog Z803613 14 Column A: 3.5.1 pre-release15 Column B: 3.5.17 pre-release16 17 # DESCRIPTION A B18 == ================================================================= ==== ====19 1 rtems_semaphore_create 67 6020 rtems_semaphore_delete 64 5821 rtems_semaphore_obtain: available 46 3822 rtems_semaphore_obtain: not available -- NO_WAIT 45 3823 rtems_semaphore_release: no waiting tasks 51 4424 25 2 rtems_semaphore_obtain: not available -- caller blocks 113 10926 27 3 rtems_semaphore_release: task readied -- preempts caller 94 8728 29 4 rtems_task_restart: blocked task -- preempts caller 152 14930 rtems_task_restart: ready task -- preempts caller 145 14231 rtems_semaphore_release: task readied -- returns to caller 71 6632 rtems_task_create 154 14833 rtems_task_start 82 7634 rtems_task_restart: suspended task -- returns to caller 94 8935 rtems_task_delete: suspended task 145 13836 rtems_task_restart: ready task -- returns to caller 97 9237 rtems_task_restart: blocked task -- returns to caller 128 12438 rtems_task_delete: blocked task 149 14339 40 5 rtems_task_suspend: calling task 77 7141 rtems_task_resume: task readied -- preempts caller 74 6742 43 6 rtems_task_restart: calling task 101 9544 rtems_task_suspend: returns to caller 50 4345 rtems_task_resume: task readied -- returns to caller 50 4546 rtems_task_delete: ready task 151 14447 48 7 rtems_task_restart: suspended task -- preempts caller 130 12549 50 8 rtems_task_set_priority: obtain current priority 38 3151 rtems_task_set_priority: returns to caller 71 6452 rtems_task_mode: obtain current mode 16 1453 rtems_task_mode: no reschedule 18 1654 rtems_task_mode: reschedule -- returns to caller 24 2355 rtems_task_mode: reschedule -- preempts caller 68 6056 rtems_task_set_note 39 3357 rtems_task_get_note 40 3358 rtems_clock_set 93 8659 rtems_clock_get 1 160 61 9 rtems_message_queue_create 207 20062 rtems_message_queue_send: no waiting tasks 103 9763 rtems_message_queue_urgent: no waiting tasks 103 9664 rtems_message_queue_receive: available 87 7965 rtems_message_queue_flush: no messages flushed 36 2966 rtems_message_queue_flush: messages flushed 46 3967 rtems_message_queue_delete 85 8068 69 10 rtems_message_queue_receive: not available -- NO_WAIT 51 4370 rtems_message_queue_receive: not available -- caller blocks 115 11471 72 11 rtems_message_queue_send: task readied -- preempts caller 129 12373 74 12 rtems_message_queue_send: task readied -- returns to caller 107 10175 76 13 rtems_message_queue_urgent: task readied -- preempts caller 130 12377 78 14 rtems_message_queue_urgent: task readied -- returns to caller 107 10179 80 15 rtems_event_receive: obtain current events 0 181 rtems_event_receive: not available -- NO_WAIT 33 2382 rtems_event_receive: not available -- caller blocks 92 8483 rtems_event_send: no task readied 34 2484 rtems_event_receive: available 36 2885 rtems_event_send: task readied -- returns to caller 67 6086 87 16 rtems_event_send: task readied -- preempts caller 90 8488 89 17 rtems_task_set_priority: preempts caller 110 10690 91 18 rtems_task_delete: calling task 175 17092 93 19 rtems_signal_catch 23 1594 rtems_signal_send: returns to caller 43 3795 rtems_signal_send: signal to self 52 5596 exit ASR overhead: returns to calling task 37 3797 exit ASR overhead: returns to preempting task 65 5498 99 20 rtems_partition_create 77 70100 rtems_region_create 70 63101 rtems_partition_get_buffer: available 42 35102 rtems_partition_get_buffer: not available 40 33103 rtems_partition_return_buffer 50 43104 rtems_partition_delete 47 42105 rtems_region_get_segment: available 58 52106 rtems_region_get_segment: not available -- NO_WAIT 55 49107 rtems_region_return_segment: no waiting tasks 60 54108 rtems_region_get_segment: not available -- caller blocks 126 123109 rtems_region_return_segment: task readied -- preempts caller 143 136110 rtems_region_return_segment: task readied -- returns to caller 120 114111 rtems_region_delete 45 39112 rtems_io_initialize 6 4113 rtems_io_open 2 2114 rtems_io_close 1 1115 rtems_io_read 1 2116 rtems_io_write 1 3117 rtems_io_control 2 2118 119 21 rtems_task_ident 353 350120 rtems_message_queue_ident 344 341121 rtems_semaphore_ident 369 367122 rtems_partition_ident 344 341123 rtems_region_ident 350 348124 rtems_port_ident 343 340125 rtems_timer_ident 345 343126 rtems_rate_monotonic_ident 344 341127 128 22 rtems_message_queue_broadcast: task readied -- returns to caller 115 111129 rtems_message_queue_broadcast: no waiting tasks 60 53130 rtems_message_queue_broadcast: task readied -- preempts caller 138 133131 132 23 rtems_timer_create 37 28133 rtems_timer_fire_after: inactive 66 58134 rtems_timer_fire_after: active 70 61135 rtems_timer_cancel: active 42 34136 rtems_timer_cancel: inactive 39 31137 rtems_timer_reset: inactive 60 54138 rtems_timer_reset: active 65 58139 rtems_timer_fire_when: inactive 96 88140 rtems_timer_fire_when: active 96 88141 rtems_timer_delete: active 55 47142 rtems_timer_delete: inactive 51 47143 rtems_task_wake_when 125 117144 145 24 rtems_task_wake_after: yield -- returns to caller 26 16146 rtems_task_wake_after: yields -- preempts caller 65 56147 148 25 rtems_clock_tick 14 17149 150 26 _ISR_Disable 0 0151 _ISR_Flash 0 0152 _ISR_Enable 0 0153 _Thread_Disable_dispatch 0 0154 _Thread_Enable_dispatch 19 11155 _Thread_Set_state 24 24156 _Thread_Disptach (NO FP) 50 43157 context switch: no floating point contexts 41 35158 context switch: self 9 9159 context switch: to another task 9 10160 context switch: restore 1st FP task 46 39161 fp context switch: save idle, restore idle 75 68162 fp context switch: save idle, restore initialized 66 66163 fp context switch: save initialized, restore initialized 65 66164 _Thread_Resume 18 19165 _Thread_Unblock 18 19166 _Thread_Ready 22 21167 _Thread_Get 12 14168 _Semaphore_Get 10 10169 _Thread_Get: invalid id 2 2170 171 27 interrupt entry overhead: returns to interrupted task 9 9172 interrupt exit overhead: returns to interrupted task 8 8173 interrupt entry overhead: returns to nested interrupt 14 12174 interrupt exit overhead: returns to nested interrupt 0 0175 interrupt entry overhead: returns to preempting task 8 9176 interrupt exit overhead: returns to preempting task 62 54177 178 28 rtems_port_create 44 35179 rtems_port_external_to_internal 35 27180 rtems_port_internal_to_external 34 26181 rtems_port_delete 46 39182 183 29 rtems_rate_monotonic_create 40 32184 rtems_rate_monotonic_period: initiate period -- returns to caller 60 54185 rtems_rate_monotonic_period: obtain status 38 31186 rtems_rate_monotonic_cancel 46 39187 rtems_rate_monotonic_delete: inactive 54 48188 rtems_rate_monotonic_delete: active 57 51189 rtems_rate_monotonic_period: conclude periods -- caller blocks 83 74