Ticket #2444: 0001-m68k-mvme136-Remove.2.patch

File 0001-m68k-mvme136-Remove.2.patch, 58.5 KB (added by Aun-Ali Zaidi, on Dec 8, 2015 at 8:00:23 PM)
  • c/src/lib/libbsp/m68k/acinclude.m4

    From e056816ca062ce7f2aaa596dc81a9dff7e38703b Mon Sep 17 00:00:00 2001
    From: Aun-Ali Zaidi <admin@kodeit.net>
    Date: Tue, 8 Dec 2015 13:51:44 -0600
    Subject: [PATCH] m68k/mvme136: Remove
    
    update #2444.
    ---
     c/src/lib/libbsp/m68k/acinclude.m4                 |   2 -
     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     | 201 ---------------------
     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 -------------------
     22 files changed, 1533 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/acinclude.m4 b/c/src/lib/libbsp/m68k/acinclude.m4
    index f4b2ccf..b755b66 100644
    a b AC_DEFUN([RTEMS_CHECK_BSPDIR], 
    2828    AC_CONFIG_SUBDIRS([mcf5329]);;
    2929  mrm332 )
    3030    AC_CONFIG_SUBDIRS([mrm332]);;
    31   mvme136 )
    32     AC_CONFIG_SUBDIRS([mvme136]);;
    3331  mvme147 )
    3432    AC_CONFIG_SUBDIRS([mvme147]);;
    3533  mvme147s )
  • deleted file c/src/lib/libbsp/m68k/mvme136/Makefile.am

    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 ../../../../aclocal
    2 
    3 include $(top_srcdir)/../../../../automake/compile.am
    4 
    5 include_bspdir = $(includedir)/bsp
    6 
    7 dist_project_lib_DATA = bsp_specs
    8 
    9 include_HEADERS = include/bsp.h
    10 include_HEADERS += include/tm27.h
    11 
    12 nodist_include_HEADERS = include/bspopts.h
    13 nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
    14 DISTCLEANFILES = include/bspopts.h
    15 noinst_PROGRAMS =
    16 
    17 include_HEADERS += include/coverhd.h
    18 
    19 ## Zilog component header files
    20 include_rtems_zilogdir = $(includedir)/rtems/zilog
    21 include_rtems_zilog_HEADERS = ../../shared/include/zilog/z8036.h
    22 
    23 noinst_LIBRARIES = libbspstart.a
    24 libbspstart_a_SOURCES = ../../m68k/shared/start/start.S
    25 project_lib_DATA = start.$(OBJEXT)
    26 
    27 dist_project_lib_DATA += startup/linkcmds
    28 
    29 noinst_LIBRARIES += libbsp.a
    30 libbsp_a_SOURCES =
    31 
    32 # startup
    33 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.c
    38 # gnatsupp
    39 libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
    40 # clock
    41 libbsp_a_SOURCES += clock/ckinit.c
    42 # console
    43 libbsp_a_SOURCES += console/console.c
    44 # debugio
    45 libbsp_a_SOURCES += ../../shared/dummy_printk_support.c
    46 # timer
    47 libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
    48 
    49 if HAS_MP
    50 # shmsupp
    51 libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
    52     shmsupp/mpisr.c
    53 endif
    54 
    55 libbsp_a_LIBADD = \
    56     ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
    57     ../../../libcpu/@RTEMS_CPU@/shared/misc.rel
    58 
    59 EXTRA_DIST = times
    60 
    61 include $(srcdir)/preinstall.am
    62 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_endfile
    2 %rename startfile old_startfile
    3 %rename link old_link
    4 
    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 be
    11  *  found in the file LICENSE in this distribution or at
    12  *  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        0xfffb0000
    31 #define RELOAD       0x24            /* clr IP & IUS,allow countdown */
    32 
    33 #define CLOCK_VECTOR 66
    34 
    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 Handler
    45  */
    46 static rtems_isr Clock_isr(
    47   rtems_vector_number vector
    48 )
    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   else
    58     Clock_isrs -= 1;
    59 }
    60 
    61 static void Install_clock(
    62   rtems_isr_entry clock_isr
    63 )
    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 register
    87    */
    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 *pargp
    109 )
    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_CPU
    9 AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
    10 RTEMS_BSP_CONFIGURE
    11 
    12 RTEMS_PROG_CC_FOR_TARGET
    13 RTEMS_CANONICALIZE_TOOLS
    14 RTEMS_PROG_CCAS
    15 
    16 RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
    17 
    18 # Explicitly list all Makefiles here
    19 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 be
    10  *  found in the file LICENSE in this distribution or at
    11  *  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_initialize
    21  *
    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                      *arg
    28 )
    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) 0
    39   );
    40 
    41   if (status != RTEMS_SUCCESSFUL)
    42     rtems_fatal_error_occurred(status);
    43 
    44   return RTEMS_SUCCESSFUL;
    45 }
    46 
    47 /*  inbyte
    48  *
    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 /*  outbyte
    58  *
    59  *  This routine transmits a character out the M68681.  It supports
    60  *  XON/XOFF flow control.
    61  */
    62 static void outbyte(
    63   char ch
    64 )
    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 point
    80  */
    81 rtems_device_driver console_open(
    82   rtems_device_major_number major,
    83   rtems_device_minor_number minor,
    84   void                    * arg
    85 )
    86 {
    87   return RTEMS_SUCCESSFUL;
    88 }
    89 
    90 /*
    91  *  Close entry point
    92  */
    93 rtems_device_driver console_close(
    94   rtems_device_major_number major,
    95   rtems_device_minor_number minor,
    96   void                    * arg
    97 )
    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                    * arg
    109 )
    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                    * arg
    140 )
    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 point
    165  */
    166 rtems_device_driver console_control(
    167   rtems_device_major_number major,
    168   rtems_device_minor_number minor,
    169   void                    * arg
    170 )
    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 be
    10  *  found in the file LICENSE in this distribution or at
    11  *  http://www.rtems.org/license/LICENSE.
    12  */
    13 
    14 #ifndef LIBBSP_M68K_MVME136_BSP_H
    15 #define LIBBSP_M68K_MVME136_BSP_H
    16 
    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 __cplusplus
    26 extern "C" {
    27 #endif
    28 
    29 /* Constants */
    30 
    31 #define RAM_START 0
    32 #define RAM_END   0x100000
    33 
    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                 type
    75 );
    76 
    77 #ifdef __cplusplus
    78 }
    79 #endif
    80 
    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  * @file
    3  * @ingroup m68k_mvme136
    4  * @brief C Overhead definitions
    5  */
    6 
    7 /*
    8  *
    9  *  This include file has defines to represent the overhead associated
    10  *  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 be
    16  *  found in the file LICENSE in this distribution or at
    17  *  http://www.rtems.org/license/LICENSE.
    18  */
    19 
    20 #ifndef __COVERHD_h
    21 #define __COVERHD_h
    22 
    23 #ifdef __cplusplus
    24 extern "C" {
    25 #endif
    26 
    27 #define CALLING_OVERHEAD_INITIALIZE_EXECUTIVE      2
    28 #define CALLING_OVERHEAD_SHUTDOWN_EXECUTIVE        1
    29 #define CALLING_OVERHEAD_TASK_CREATE               3
    30 #define CALLING_OVERHEAD_TASK_IDENT                2
    31 #define CALLING_OVERHEAD_TASK_START                2
    32 #define CALLING_OVERHEAD_TASK_RESTART              2
    33 #define CALLING_OVERHEAD_TASK_DELETE               1
    34 #define CALLING_OVERHEAD_TASK_SUSPEND              1
    35 #define CALLING_OVERHEAD_TASK_RESUME               2
    36 #define CALLING_OVERHEAD_TASK_SET_PRIORITY         2
    37 #define CALLING_OVERHEAD_TASK_MODE                 2
    38 #define CALLING_OVERHEAD_TASK_GET_NOTE             2
    39 #define CALLING_OVERHEAD_TASK_SET_NOTE             2
    40 #define CALLING_OVERHEAD_TASK_WAKE_WHEN            4
    41 #define CALLING_OVERHEAD_TASK_WAKE_AFTER           1
    42 #define CALLING_OVERHEAD_INTERRUPT_CATCH           2
    43 #define CALLING_OVERHEAD_CLOCK_GET                 5
    44 #define CALLING_OVERHEAD_CLOCK_SET                 4
    45 #define CALLING_OVERHEAD_CLOCK_TICK                1
    46 
    47 #define CALLING_OVERHEAD_TIMER_CREATE              2
    48 #define CALLING_OVERHEAD_TIMER_IDENT               1
    49 #define CALLING_OVERHEAD_TIMER_DELETE              2
    50 #define CALLING_OVERHEAD_TIMER_FIRE_AFTER          2
    51 #define CALLING_OVERHEAD_TIMER_FIRE_WHEN           5
    52 #define CALLING_OVERHEAD_TIMER_RESET               1
    53 #define CALLING_OVERHEAD_TIMER_CANCEL              1
    54 #define CALLING_OVERHEAD_SEMAPHORE_CREATE          3
    55 #define CALLING_OVERHEAD_SEMAPHORE_DELETE          1
    56 #define CALLING_OVERHEAD_SEMAPHORE_IDENT           2
    57 #define CALLING_OVERHEAD_SEMAPHORE_OBTAIN          2
    58 #define CALLING_OVERHEAD_SEMAPHORE_RELEASE         1
    59 #define CALLING_OVERHEAD_MESSAGE_QUEUE_CREATE      2
    60 #define CALLING_OVERHEAD_MESSAGE_QUEUE_IDENT       2
    61 #define CALLING_OVERHEAD_MESSAGE_QUEUE_DELETE      1
    62 #define CALLING_OVERHEAD_MESSAGE_QUEUE_SEND        2
    63 #define CALLING_OVERHEAD_MESSAGE_QUEUE_URGENT      2
    64 #define CALLING_OVERHEAD_MESSAGE_QUEUE_BROADCAST   2
    65 #define CALLING_OVERHEAD_MESSAGE_QUEUE_RECEIVE     3
    66 #define CALLING_OVERHEAD_MESSAGE_QUEUE_FLUSH       2
    67 
    68 #define CALLING_OVERHEAD_EVENT_SEND                2
    69 #define CALLING_OVERHEAD_EVENT_RECEIVE             2
    70 #define CALLING_OVERHEAD_SIGNAL_CATCH              2
    71 #define CALLING_OVERHEAD_SIGNAL_SEND               2
    72 #define CALLING_OVERHEAD_PARTITION_CREATE          3
    73 #define CALLING_OVERHEAD_PARTITION_IDENT           2
    74 #define CALLING_OVERHEAD_PARTITION_DELETE          1
    75 #define CALLING_OVERHEAD_PARTITION_GET_BUFFER      2
    76 #define CALLING_OVERHEAD_PARTITION_RETURN_BUFFER   2
    77 #define CALLING_OVERHEAD_REGION_CREATE             3
    78 #define CALLING_OVERHEAD_REGION_IDENT              2
    79 #define CALLING_OVERHEAD_REGION_DELETE             2
    80 #define CALLING_OVERHEAD_REGION_GET_SEGMENT        3
    81 #define CALLING_OVERHEAD_REGION_RETURN_SEGMENT     2
    82 #define CALLING_OVERHEAD_PORT_CREATE               3
    83 #define CALLING_OVERHEAD_PORT_IDENT                2
    84 #define CALLING_OVERHEAD_PORT_DELETE               1
    85 #define CALLING_OVERHEAD_PORT_EXTERNAL_TO_INTERNAL 2
    86 #define CALLING_OVERHEAD_PORT_INTERNAL_TO_EXTERNAL 2
    87 
    88 #define CALLING_OVERHEAD_IO_INITIALIZE             2
    89 #define CALLING_OVERHEAD_IO_OPEN                   2
    90 #define CALLING_OVERHEAD_IO_CLOSE                  3
    91 #define CALLING_OVERHEAD_IO_READ                   2
    92 #define CALLING_OVERHEAD_IO_WRITE                  2
    93 #define CALLING_OVERHEAD_IO_CONTROL                2
    94 #define CALLING_OVERHEAD_FATAL_ERROR_OCCURRED      1
    95 #define CALLING_OVERHEAD_RATE_MONOTONIC_CREATE     2
    96 #define CALLING_OVERHEAD_RATE_MONOTONIC_IDENT      2
    97 #define CALLING_OVERHEAD_RATE_MONOTONIC_DELETE     1
    98 #define CALLING_OVERHEAD_RATE_MONOTONIC_CANCEL     1
    99 #define CALLING_OVERHEAD_RATE_MONOTONIC_PERIOD     2
    100 #define CALLING_OVERHEAD_MULTIPROCESSING_ANNOUNCE  1
    101 
    102 #ifdef __cplusplus
    103 }
    104 #endif
    105 
    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  * @file
    3  * @ingroup m68k_mvme136
    4  * @brief Implementations for interrupt mechanisms for Time Test 27
    5  */
    6 
    7 /*
    8  *  The license and distribution terms for this file may be
    9  *  found in the file LICENSE in this distribution or at
    10  *  http://www.rtems.org/license/LICENSE.
    11  */
    12 
    13 #ifndef _RTEMS_TMTEST27
    14 #error "This is an RTEMS internal file you must not include directly."
    15 #endif
    16 
    17 #ifndef __tm27_h
    18 #define __tm27_h
    19 
    20 /*
    21  *  Define the interrupt mechanism for Time Test 27
    22  *
    23  *  NOTE: Use the MPCSR vector for the MVME136
    24  */
    25 
    26 #define MUST_WAIT_FOR_INTERRUPT 0
    27 
    28 #define Install_tm27_vector( handler ) set_vector( (handler), 75, 1 )
    29 
    30 #define Cause_tm27_intr()  (*(volatile uint8_t*)0xfffb006b) = 0x80
    31 
    32 #define Clear_tm27_intr()  (*(volatile uint8_t*)0xfffb006b) = 0x00
    33 
    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 Database
    3 #
    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 BSP
    3 #
    4 
    5 include $(RTEMS_ROOT)/make/custom/default.cfg
    6 
    7 RTEMS_CPU=m68k
    8 RTEMS_CPU_MODEL=m68020
    9 
    10 #
    11 #  This contains the compiler options necessary to select the CPU model
    12 #  and (hopefully) optimize for it.
    13 #
    14 CPU_CFLAGS = -mcpu=68020
    15 
    16 # optimize flag: typically -O2
    17 CFLAGS_OPTIMIZE_V = -Os -g -fomit-frame-pointer
    18 
    19 define bsp-post-link
    20         $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec
    21         sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \
    22             $(PACKHEX) > $(basename $@)$(DOWNEXT)
    23         rm -f $(basename $@).srec
    24         $(default-bsp-post-link)
    25 endef
    26 
  • 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 edit
    2 
    3 if AMPOLISH3
    4 $(srcdir)/preinstall.am: Makefile.am
    5         $(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am
    6 endif
    7 
    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)/bsp
    33         @: > $(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_specs
    38 PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
    39 
    40 $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
    41         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
    42 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
    43 
    44 $(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
    45         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
    46 PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
    47 
    48 $(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
    49         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
    50 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
    51 
    52 $(PROJECT_INCLUDE)/bsp/bootcard.h: ../../shared/include/bootcard.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
    53         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bootcard.h
    54 PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    55 
    56 $(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    57         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
    58 PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
    59 
    60 $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp):
    61         @$(MKDIR_P) $(PROJECT_INCLUDE)/rtems/zilog
    62         @: > $(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.h
    67 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/zilog/z8036.h
    68 
    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)/linkcmds
    75 PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
    76 
  • 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_address
    2  *
    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 convert
    8  *
    9  *  Output parameters:
    10  *    returns - converted address
    11  *
    12  *  COPYRIGHT (c) 1989-1999.
    13  *  On-Line Applications Research Corporation (OAR).
    14  *
    15  *  The license and distribution terms for this file may be
    16  *  found in the file LICENSE in this distribution or at
    17  *  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 *address
    26 )
    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 pointer
    4  *  to the Shared Memory Configuration Table for the Cyclone CVME961.
    5  *
    6  *  INPUT PARAMETERS:
    7  *    localnode - local node number
    8  *    shmcfg    - address of pointer to SHM Config Table
    9  *
    10  *  OUTPUT PARAMETERS:
    11  *    *shmcfg   - pointer to SHM Config Table
    12  *
    13  *  NOTES:  The MPCSR interrupt on the MVME136 is used as an interprocessor
    14  *          interrupt.   The capablities of the MPCSR are used to generate
    15  *          interprocessor interrupts for up to eight nodes.
    16  *
    17  *          The following table illustrates the configuration limitations:
    18  *
    19  *                                   BUS     MAX
    20  *                          MODE    ENDIAN  NODES
    21  *                        ========= ====== =======
    22  *                         POLLED   LITTLE  2+
    23  *                        INTERRUPT LITTLE  2-8
    24  *
    25  *  COPYRIGHT (c) 1989-1999.
    26  *  On-Line Applications Research Corporation (OAR).
    27  *
    28  *  The license and distribution terms for this file may be
    29  *  found in the file LICENSE in this distribution or at
    30  *  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 **shmcfg
    54 )
    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_BIG
    63    BSP_shm_cfgtbl.convert      = NULL_CONVERT;
    64 #else
    65    BSP_shm_cfgtbl.convert      = CPU_swap_u32;
    66 #endif
    67 
    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 #else
    74    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 #endif
    79 
    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 Routines
    2  *
    3  *  This shared memory locked queue support routine need to be
    4  *  able to lock the specified locked queue.  Interrupts are
    5  *  disabled while the queue is locked to prevent preemption
    6  *  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 be
    13  *  found in the file LICENSE in this distribution or at
    14  *  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_lock
    23  *
    24  *  Initialize the lock for the specified locked queue.
    25  */
    26 
    27 void Shm_Initialize_lock(
    28   Shm_Locked_queue_Control *lq_cb
    29 )
    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 the
    37  *  specified locked queue.  It disables interrupts to prevent
    38  *  a deadlock condition.
    39  */
    40 
    41 void Shm_Lock(
    42   Shm_Locked_queue_Control *lq_cb
    43 )
    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_Unlock
    58  *
    59  *  Unlock the lock for the specified locked queue.
    60  */
    61 
    62 void Shm_Unlock(
    63   Shm_Locked_queue_Control *lq_cb
    64 )
    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.  Either
    4  *        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 be
    10  *  found in the file LICENSE in this distribution or at
    11  *  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 the
    28  *  driver's SHM interrupt service routine.
    29  *
    30  *  Input parameters:  NONE
    31  *
    32  *  Output parameters: NONE
    33  */
    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 be
    8  *  found in the file LICENSE in this distribution or at
    9  *  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   0xfffb0000
    32 
    33 void bsp_fatal_extension(
    34   rtems_fatal_source source,
    35   bool is_internal,
    36   rtems_fatal_code error
    37 )
    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 be
    10  *  found in the file LICENSE in this distribution or at
    11  *  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 85d614d..0000000
    + -  
    1 /*
    2  *  This file contains directives for the GNU linker which are specific
    3  *  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 be
    9  *  found in the file LICENSE in this distribution or at
    10  *  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 MEMORY
    22 {
    23         ram : org = 0x0, l = 1M
    24 }
    25 
    26 SECTIONS
    27 {
    28         ram : {
    29                 . = 0x3000;
    30         } >ram
    31 
    32         /*
    33          * Text, data and bss segments
    34          */
    35         .text : {
    36                 *(.text*)
    37 
    38                 /*
    39                  * C++ constructors/destructors
    40                  *
    41                  * Various files can provide initialization and finalization
    42                  * functions.  crtbegin.o and crtend.o are two instances. The
    43                  * body of these functions are in .init and .fini sections. We
    44                  * accumulate the bodies here, and prepend function prologues
    45                  * from crti.o and function epilogues from crtn.o. crti.o must
    46                  * be linked first; crtn.o must be linked last.  Because these
    47                  * are wildcards, it doesn't matter if the user does not
    48                  * actually link against crti.o and crtn.o; the linker won't
    49                  * look for a file to match a wildcard.  The wildcard also
    50                  * means that it doesn't matter which directory crti.o and
    51                  * 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 constructors
    59                  * and destructors so we make sure it is first.  Because this
    60                  * is a wildcard, it doesn't matter if the user does not
    61                  * actually link against crtbegin.o; the linker won't look for
    62                  * a file to match a wildcard.  The wildcard also means that
    63                  * it doesn't matter which directory crtbegin.o is in. The
    64                  * constructor and destructor list are terminated in
    65                  * 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/destructors
    88                  */
    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 info
    99                  */
    100                 . = ALIGN (16);
    101                 *(.eh_frame)
    102 
    103                 /*
    104                  * Read-only data
    105                  */
    106                 . = ALIGN (16);
    107                 _rodata_start = .;
    108                 *(.rodata*)
    109                 KEEP (*(SORT(.rtemsroset.*)))
    110                 *(.gnu.linkonce.r*)
    111 
    112                  . = ALIGN (16);
    113                 PROVIDE (_etext = .);
    114         } >ram
    115 
    116         .tdata : {
    117                 _TLS_Data_begin = .;
    118                 *(.tdata .tdata.* .gnu.linkonce.td.*)
    119                 _TLS_Data_end = .;
    120         } >ram
    121 
    122         .tbss : {
    123                 _TLS_BSS_begin = .;
    124                 *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon)
    125                 _TLS_BSS_end = .;
    126         } >ram
    127 
    128         _TLS_Data_size = _TLS_Data_end - _TLS_Data_begin;
    129         _TLS_Data_begin = _TLS_Data_size != 0 ? _TLS_Data_begin : _TLS_BSS_begin;
    130         _TLS_Data_end = _TLS_Data_size != 0 ? _TLS_Data_end : _TLS_BSS_begin;
    131         _TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin;
    132         _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;
    133         _TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
    134 
    135         .data : {
    136                 PROVIDE (_copy_start = .);
    137                 *(.data*)
    138                 KEEP (*(SORT(.rtemsrwset.*)))
    139                 *(.gnu.linkonce.d*)
    140                 *(.gcc_except_table*)
    141                 *(.jcr)
    142                 . = ALIGN (16);
    143                 PROVIDE (_edata = .);
    144                 PROVIDE (_copy_end = .);
    145         } >ram
    146         .bss : {
    147                 _clear_start = .;
    148                 *(.dynbss)
    149                 *(.bss* .gnu.linkonce.b.*)
    150                 *(COMMON)
    151                 . = ALIGN (16);
    152                 PROVIDE (end = .);
    153 
    154                 . += _StackSize;
    155                 . = ALIGN (16);
    156                 _stack_init = .;
    157                 _clear_end = .;
    158 
    159                 WorkAreaBase = .;
    160         } >ram
    161 
    162   /* Stabs debugging sections.  */
    163   .stab 0 : { *(.stab) }
    164   .stabstr 0 : { *(.stabstr) }
    165   .stab.excl 0 : { *(.stab.excl) }
    166   .stab.exclstr 0 : { *(.stab.exclstr) }
    167   .stab.index 0 : { *(.stab.index) }
    168   .stab.indexstr 0 : { *(.stab.indexstr) }
    169   .comment 0 : { *(.comment) }
    170 
    171   /* DWARF debug sections.
    172      Symbols in the DWARF debugging sections are relative to the beginning
    173      of the section so we begin them at 0.  */
    174   /* DWARF 1 */
    175   .debug          0 : { *(.debug) }
    176   .line           0 : { *(.line) }
    177  
    178   /* GNU DWARF 1 extensions */
    179   .debug_srcinfo  0 : { *(.debug_srcinfo) }
    180   .debug_sfnames  0 : { *(.debug_sfnames) }
    181  
    182   /* DWARF 1.1 and DWARF 2 */
    183   .debug_aranges  0 : { *(.debug_aranges) }
    184   .debug_pubnames 0 : { *(.debug_pubnames) }
    185  
    186   /* DWARF 2 */
    187   .debug_info     0 : { *(.debug_info) }
    188   .debug_abbrev   0 : { *(.debug_abbrev) }
    189   .debug_line     0 : { *(.debug_line) }
    190   .debug_frame    0 : { *(.debug_frame) }
    191   .debug_str      0 : { *(.debug_str) }
    192   .debug_loc      0 : { *(.debug_loc) }
    193   .debug_macinfo  0 : { *(.debug_macinfo) }
    194  
    195   /* SGI/MIPS DWARF 2 extensions */
    196   .debug_weaknames 0 : { *(.debug_weaknames) }
    197   .debug_funcnames 0 : { *(.debug_funcnames) }
    198   .debug_typenames 0 : { *(.debug_typenames) }
    199   .debug_varnames  0 : { *(.debug_varnames) }
    200   /* These must appear regardless of  .  */
    201 }
  • 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 be
    6  *  found in the file LICENSE in this distribution or at
    7  *  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_flag
    82 )
    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 MVME136
    4  *  board.   The timer is set up to generate an interrupt at maximum
    5  *  intervals.
    6  *
    7  *  Input parameters:  NONE
    8  *
    9  *  Output parameters:  NONE
    10  *
    11  *  COPYRIGHT (c) 1989-1999.
    12  *  On-Line Applications Research Corporation (OAR).
    13  *
    14  *  The license and distribution terms for this file may be
    15  *  found in the file LICENSE in this distribution or at
    16  *  http://www.rtems.org/license/LICENSE.
    17  */
    18 
    19 #include <rtems/asm.h>
    20 
    21 BEGIN_CODE
    22 
    23 .set CT1_CMD_STATUS,  0xfffb000a         | port A
    24 .set RELOAD,          0x24               | clr IP & IUS,allow countdown
    25 
    26         PUBLIC (timerisr)
    27 SYM (timerisr):
    28         movl    a0,a7@-                  | save a0
    29         movl    #CT1_CMD_STATUS,a0       | a0 = addr of cmd status reg
    30         movb    #RELOAD,a0@              | reload countdown
    31         addql   #1, SYM (Ttimer_val)     | increment timer value
    32         movl    a7@+,a0                  | save a0
    33         rte
    34 
    35 END_CODE
    36 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 BSP
    3 #
    4 
    5 Board:                Motorola MVME136
    6 CPU:                  Motorola MC68020 + MC68881 FPU
    7 Clock Speed:          20 Mhz
    8 Memory Configuration: DRAM w/no cache
    9 Wait States:          1 wait state
    10 
    11 Times Reported in:    microseconds
    12 Timer Source:         Zilog Z8036
    13 
    14 Column A:             3.5.1 pre-release
    15 Column B:             3.5.17 pre-release
    16 
    17 #                          DESCRIPTION                                 A    B
    18 == =================================================================  ==== ====
    19  1 rtems_semaphore_create                                               67   60
    20    rtems_semaphore_delete                                               64   58
    21    rtems_semaphore_obtain: available                                    46   38
    22    rtems_semaphore_obtain: not available -- NO_WAIT                     45   38
    23    rtems_semaphore_release: no waiting tasks                            51   44
    24 
    25  2 rtems_semaphore_obtain: not available -- caller blocks              113  109
    26 
    27  3 rtems_semaphore_release: task readied -- preempts caller             94   87
    28 
    29  4 rtems_task_restart: blocked task -- preempts caller                 152  149
    30    rtems_task_restart: ready task -- preempts caller                   145  142
    31    rtems_semaphore_release: task readied -- returns to caller           71   66
    32    rtems_task_create                                                   154  148
    33    rtems_task_start                                                     82   76
    34    rtems_task_restart: suspended task -- returns to caller              94   89
    35    rtems_task_delete: suspended task                                   145  138
    36    rtems_task_restart: ready task -- returns to caller                  97   92
    37    rtems_task_restart: blocked task -- returns to caller               128  124
    38    rtems_task_delete: blocked task                                     149  143
    39 
    40  5 rtems_task_suspend: calling task                                     77   71
    41    rtems_task_resume: task readied -- preempts caller                   74   67
    42 
    43  6 rtems_task_restart: calling task                                    101   95
    44    rtems_task_suspend: returns to caller                                50   43
    45    rtems_task_resume: task readied -- returns to caller                 50   45
    46    rtems_task_delete: ready task                                       151  144
    47 
    48  7 rtems_task_restart: suspended task -- preempts caller               130  125
    49 
    50  8 rtems_task_set_priority: obtain current priority                     38   31
    51    rtems_task_set_priority: returns to caller                           71   64
    52    rtems_task_mode: obtain current mode                                 16   14
    53    rtems_task_mode: no reschedule                                       18   16
    54    rtems_task_mode: reschedule -- returns to caller                     24   23
    55    rtems_task_mode: reschedule -- preempts caller                       68   60
    56    rtems_task_set_note                                                  39   33
    57    rtems_task_get_note                                                  40   33
    58    rtems_clock_set                                                      93   86
    59    rtems_clock_get                                                       1    1
    60 
    61  9 rtems_message_queue_create                                          207  200
    62    rtems_message_queue_send: no waiting tasks                          103   97
    63    rtems_message_queue_urgent: no waiting tasks                        103   96
    64    rtems_message_queue_receive: available                               87   79
    65    rtems_message_queue_flush: no messages flushed                       36   29
    66    rtems_message_queue_flush: messages flushed                          46   39
    67    rtems_message_queue_delete                                           85   80
    68 
    69 10 rtems_message_queue_receive: not available -- NO_WAIT                51   43
    70    rtems_message_queue_receive: not available -- caller blocks         115  114
    71 
    72 11 rtems_message_queue_send: task readied -- preempts caller           129  123
    73 
    74 12 rtems_message_queue_send: task readied -- returns to caller         107  101
    75 
    76 13 rtems_message_queue_urgent: task readied -- preempts caller         130  123
    77 
    78 14 rtems_message_queue_urgent: task readied -- returns to caller       107  101
    79 
    80 15 rtems_event_receive: obtain current events                            0    1
    81    rtems_event_receive: not available -- NO_WAIT                        33   23
    82    rtems_event_receive: not available -- caller blocks                  92   84
    83    rtems_event_send: no task readied                                    34   24
    84    rtems_event_receive: available                                       36   28
    85    rtems_event_send: task readied -- returns to caller                  67   60
    86 
    87 16 rtems_event_send: task readied -- preempts caller                    90   84
    88 
    89 17 rtems_task_set_priority: preempts caller                            110  106
    90 
    91 18 rtems_task_delete: calling task                                     175  170
    92 
    93 19 rtems_signal_catch                                                   23   15
    94    rtems_signal_send: returns to caller                                 43   37
    95    rtems_signal_send: signal to self                                    52   55
    96    exit ASR overhead: returns to calling task                           37   37
    97    exit ASR overhead: returns to preempting task                        65   54
    98 
    99 20 rtems_partition_create                                               77   70
    100    rtems_region_create                                                  70   63
    101    rtems_partition_get_buffer: available                                42   35
    102    rtems_partition_get_buffer: not available                            40   33
    103    rtems_partition_return_buffer                                        50   43
    104    rtems_partition_delete                                               47   42
    105    rtems_region_get_segment: available                                  58   52
    106    rtems_region_get_segment: not available -- NO_WAIT                   55   49
    107    rtems_region_return_segment: no waiting tasks                        60   54
    108    rtems_region_get_segment: not available -- caller blocks            126  123
    109    rtems_region_return_segment: task readied -- preempts caller        143  136
    110    rtems_region_return_segment: task readied -- returns to caller      120  114
    111    rtems_region_delete                                                  45   39
    112    rtems_io_initialize                                                   6    4
    113    rtems_io_open                                                         2    2
    114    rtems_io_close                                                        1    1
    115    rtems_io_read                                                         1    2
    116    rtems_io_write                                                        1    3
    117    rtems_io_control                                                      2    2
    118 
    119 21 rtems_task_ident                                                    353  350
    120    rtems_message_queue_ident                                           344  341
    121    rtems_semaphore_ident                                               369  367
    122    rtems_partition_ident                                               344  341
    123    rtems_region_ident                                                  350  348
    124    rtems_port_ident                                                    343  340
    125    rtems_timer_ident                                                   345  343
    126    rtems_rate_monotonic_ident                                          344  341
    127 
    128 22 rtems_message_queue_broadcast: task readied -- returns to caller    115  111
    129    rtems_message_queue_broadcast: no waiting tasks                      60   53
    130    rtems_message_queue_broadcast: task readied -- preempts caller      138  133
    131 
    132 23 rtems_timer_create                                                   37   28
    133    rtems_timer_fire_after: inactive                                     66   58
    134    rtems_timer_fire_after: active                                       70   61
    135    rtems_timer_cancel: active                                           42   34
    136    rtems_timer_cancel: inactive                                         39   31
    137    rtems_timer_reset: inactive                                          60   54
    138    rtems_timer_reset: active                                            65   58
    139    rtems_timer_fire_when: inactive                                      96   88
    140    rtems_timer_fire_when: active                                        96   88
    141    rtems_timer_delete: active                                           55   47
    142    rtems_timer_delete: inactive                                         51   47
    143    rtems_task_wake_when                                                125  117
    144 
    145 24 rtems_task_wake_after: yield -- returns to caller                    26   16
    146    rtems_task_wake_after: yields -- preempts caller                     65   56
    147 
    148 25 rtems_clock_tick                                                     14   17
    149 
    150 26 _ISR_Disable                                                          0    0
    151    _ISR_Flash                                                            0    0
    152    _ISR_Enable                                                           0    0
    153    _Thread_Disable_dispatch                                              0    0
    154    _Thread_Enable_dispatch                                              19   11
    155    _Thread_Set_state                                                    24   24
    156    _Thread_Disptach (NO FP)                                             50   43
    157    context switch: no floating point contexts                           41   35
    158    context switch: self                                                  9    9
    159    context switch: to another task                                       9   10
    160    context switch: restore 1st FP task                                  46   39
    161    fp context switch: save idle, restore idle                           75   68
    162    fp context switch: save idle, restore initialized                    66   66
    163    fp context switch: save initialized, restore initialized             65   66
    164    _Thread_Resume                                                       18   19
    165    _Thread_Unblock                                                      18   19
    166    _Thread_Ready                                                        22   21
    167    _Thread_Get                                                          12   14
    168    _Semaphore_Get                                                       10   10
    169    _Thread_Get: invalid id                                               2    2
    170 
    171 27 interrupt entry overhead: returns to interrupted task                 9    9
    172    interrupt exit overhead: returns to interrupted task                  8    8
    173    interrupt entry overhead: returns to nested interrupt                14   12
    174    interrupt exit overhead: returns to nested interrupt                  0    0
    175    interrupt entry overhead: returns to preempting task                  8    9
    176    interrupt exit overhead: returns to preempting task                  62   54
    177 
    178 28 rtems_port_create                                                    44   35
    179    rtems_port_external_to_internal                                      35   27
    180    rtems_port_internal_to_external                                      34   26
    181    rtems_port_delete                                                    46   39
    182 
    183 29 rtems_rate_monotonic_create                                          40   32
    184    rtems_rate_monotonic_period: initiate period -- returns to caller    60   54
    185    rtems_rate_monotonic_period: obtain status                           38   31
    186    rtems_rate_monotonic_cancel                                          46   39
    187    rtems_rate_monotonic_delete: inactive                                54   48
    188    rtems_rate_monotonic_delete: active                                  57   51
    189    rtems_rate_monotonic_period: conclude periods -- caller blocks       83   74