Changeset 07e9642c in rtems


Ignore:
Timestamp:
Nov 28, 2007, 9:44:46 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
28f398e7
Parents:
b9f34ad
Message:

2007-11-28 Joel Sherrill <joel.sherrill@…>

  • startup/bspstart.c: Eliminate PowerPC specific elements from the CPU Table. They have been replaced with variables named bsp_XXX as needed.
Location:
c/src/lib/libbsp/powerpc
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ep1a/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-11-26      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c

    rb9f34ad r07e9642c  
    55 *  before this routine is invoked.
    66 *
    7  *  COPYRIGHT (c) 1989-1999.
     7 *  COPYRIGHT (c) 1989-2007.
    88 *  On-Line Applications Research Corporation (OAR).
    99 *
     
    4343extern void ShowBATS();
    4444unsigned int rsPMCQ1Init();
     45
     46uint32_t bsp_clicks_per_usec;
    4547
    4648SPR_RW(SPRG0)
     
    377379  Cpu_table.postdriver_hook      = bsp_postdriver_hook;
    378380  Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
    379   Cpu_table.clicks_per_usec      = BSP_processor_frequency/(BSP_time_base_divisor * 1000);
    380381  Cpu_table.exceptions_in_RAM    = TRUE;
     382
     383  bsp_clicks_per_usec = BSP_processor_frequency/(BSP_time_base_divisor * 1000);
    381384
    382385ShowBATS();
  • c/src/lib/libbsp/powerpc/gen405/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • c/src/lib/libbsp/powerpc/gen405/startup/bspstart.c

    rb9f34ad r07e9642c  
    7979void *bsp_ram_end = (void *)RAM_END;  /* first addr behind avail. ram area */
    8080
     81/*
     82 *  Driver configuration parameters
     83 */
     84uint32_t   bsp_serial_per_sec;         /* Serial clocks per second */
     85boolean    bsp_serial_external_clock;
     86boolean    bsp_serial_xon_xoff;
     87boolean    bsp_serial_cts_rts;
     88uint32_t   bsp_serial_rate;
     89uint32_t   bsp_timer_average_overhead; /* Average overhead of timer in ticks */
     90uint32_t   bsp_timer_least_valid;      /* Least valid number from timer      */
     91boolean    bsp_timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
     92
    8193/*      Initialize whatever libc we are using
    8294 *      called from postdriver hook
     
    180192  Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
    181193
    182   Cpu_table.clicks_per_usec = 300;
    183   Cpu_table.serial_per_sec = 14625000; /* = (CPU Clock / UART Internal Clock Divisor) */
    184   Cpu_table.serial_external_clock = 0;
    185   Cpu_table.timer_internal_clock  = 1;
    186   Cpu_table.serial_xon_xoff = 0;
    187   Cpu_table.serial_cts_rts = 1;
    188   Cpu_table.serial_rate = 115200;
    189   Cpu_table.timer_average_overhead = 2;
    190   Cpu_table.timer_least_valid = 3;
    191   Cpu_table.exceptions_in_RAM = TRUE;
     194  bsp_clicks_per_usec = 300;
     195  bsp_serial_per_sec = 14625000;
     196  bsp_serial_external_clock = 0;
     197  bsp_timer_internal_clock  = 1;
     198  bsp_serial_xon_xoff = 0;
     199  bsp_serial_cts_rts = 1;
     200  bsp_serial_rate = 115200;
     201  bsp_timer_average_overhead = 2;
     202  bsp_timer_least_valid = 3;
     203  bsp_exceptions_in_RAM = TRUE;
    192204}
  • c/src/lib/libbsp/powerpc/gen83xx/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-10-26      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    28
  • c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c

    rb9f34ad r07e9642c  
    6363
    6464/*
     65 *  Driver configuration parameters
     66 */
     67uint32_t   bsp_clicks_per_usec;
     68
     69/*
    6570 *  Use the shared implementations of the following routines.
    6671 *  Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
     
    206211  Cpu_table.predriver_hook         = bsp_predriver_hook;     /* init PCI / RTC ...   */
    207212  Cpu_table.postdriver_hook        = bsp_postdriver_hook;
    208   Cpu_table.clicks_per_usec        = (BSP_CSB_CLK_FRQ/1000000);
    209213  Cpu_table.exceptions_in_RAM      = TRUE;
    210214
     
    212216    Cpu_table.interrupt_stack_size = 4 * 1024;
    213217
    214  /*
    215   * Install our own set of exception vectors
    216   */
     218  bsp_clicks_per_usec        = (BSP_CSB_CLK_FRQ/1000000);
     219
     220  /*
     221   * Install our own set of exception vectors
     222   */
    217223
    218224  initialize_exceptions();
  • c/src/lib/libbsp/powerpc/helas403/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • c/src/lib/libbsp/powerpc/helas403/startup/bspstart.c

    rb9f34ad r07e9642c  
    7676char *rtems_progname;
    7777void *bsp_ram_end = (void *)RAM_END;  /* first addr behind avail. ram area */
     78
     79/*
     80 *  Driver configuration parameters
     81 */
     82uint32_t   bsp_clicks_per_usec;
     83uint32_t   bsp_serial_per_sec;         /* Serial clocks per second */
     84boolean    bsp_serial_external_clock;
     85boolean    bsp_serial_xon_xoff;
     86boolean    bsp_serial_cts_rts;
     87uint32_t   bsp_serial_rate;
     88uint32_t   bsp_timer_average_overhead; /* Average overhead of timer in ticks */
     89uint32_t   bsp_timer_least_valid;      /* Least valid number from timer      */
     90boolean    bsp_timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
    7891
    7992/*      Initialize whatever libc we are using
     
    168181  Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
    169182
    170   Cpu_table.clicks_per_usec = 25;
    171   Cpu_table.serial_per_sec = 25000000;
    172   Cpu_table.serial_external_clock = 0;
    173   Cpu_table.timer_internal_clock  = 1;
    174   Cpu_table.serial_xon_xoff = 0;
    175   Cpu_table.serial_cts_rts = 1;
    176   Cpu_table.serial_rate = 9600;
    177   Cpu_table.timer_average_overhead = 2;
    178   Cpu_table.timer_least_valid = 3;
    179   Cpu_table.exceptions_in_RAM = TRUE;
     183  bsp_clicks_per_usec = 25;
     184  bsp_serial_per_sec = 25000000;
     185  bsp_serial_external_clock = 0;
     186  bsp_timer_internal_clock  = 1;
     187  bsp_serial_xon_xoff = 0;
     188  bsp_serial_cts_rts = 1;
     189  bsp_serial_rate = 9600;
     190  bsp_timer_average_overhead = 2;
     191  bsp_timer_least_valid = 3;
     192  bsp_exceptions_in_RAM = TRUE;
    180193}
  • c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-09-12      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c

    rb9f34ad r07e9642c  
    2626 *
    2727 *
    28  *  COPYRIGHT (c) 1989-1999.
     28 *  COPYRIGHT (c) 1989-2007.
    2929 *  On-Line Applications Research Corporation (OAR).
    3030 *
     
    7474
    7575char *rtems_progname;
     76
     77/*
     78 *  Driver configuration parameters
     79 */
     80uint32_t   bsp_clock_speed;
     81uint32_t   bsp_clicks_per_usec;
     82uint32_t   bsp_serial_per_sec;         /* Serial clocks per second */
     83boolean    bsp_serial_external_clock;
     84boolean    bsp_serial_xon_xoff;
     85boolean    bsp_serial_cts_rts;
     86uint32_t   bsp_serial_rate;
     87uint32_t   bsp_timer_average_overhead; /* Average overhead of timer in ticks */
     88uint32_t   bsp_timer_least_valid;      /* Least valid number from timer      */
     89boolean    bsp_timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
    7690
    7791/*
     
    294308    Cpu_table.interrupt_stack_size   = 4 * 1024;
    295309
    296   Cpu_table.clicks_per_usec        = 10;  /* for 40MHz extclk */
    297   Cpu_table.serial_per_sec         = 40000000;
    298   Cpu_table.serial_external_clock  = 0;
    299   Cpu_table.serial_xon_xoff        = 0;
    300   Cpu_table.serial_cts_rts         = 0;
    301   Cpu_table.serial_rate            = 9600;
    302   Cpu_table.timer_average_overhead = 3;
    303   Cpu_table.timer_least_valid      = 3;
    304   Cpu_table.clock_speed            = 40000000;
     310  bsp_clicks_per_usec      = 10;  /* for 40MHz extclk */
     311  bsp_serial_per_sec       = 40000000;
     312  bsp_serial_external_clock  = 0;
     313  bsp_serial_xon_xoff      = 0;
     314  bsp_serial_cts_rts       = 0;
     315  bsp_serial_rate          = 9600;
     316  bsp_timer_average_overhead = 3;
     317  bsp_timer_least_valid            = 3;
     318  bsp_clock_speed          = 40000000;
    305319
    306320#ifdef REV_0_2
  • c/src/lib/libbsp/powerpc/mvme5500/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-09-20      Kate Feng <feng1@bnl.gov>
    28
  • c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c

    rb9f34ad r07e9642c  
    55 *  before this routine is invoked.
    66 *
    7  *  COPYRIGHT (c) 1989-1998.
     7 *  COPYRIGHT (c) 1989-2007.
    88 *  On-Line Applications Research Corporation (OAR).
    99 *
     
    7272extern int I2Cread_eeprom();
    7373extern void BSP_vme_config(void);
     74
     75uint32_t bsp_clicks_per_usec;
    7476
    7577SPR_RW(SPRG0)
     
    387389  Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
    388390  /* P94 : 7455 TB/DECR is clocked by the system bus clock frequency */
    389   Cpu_table.clicks_per_usec      = BSP_bus_frequency/(BSP_time_base_divisor * 1000);
    390391  Cpu_table.exceptions_in_RAM    = TRUE;
    391392  _CPU_Table                     = Cpu_table;/* S. Kate Feng <feng1@bnl.gov>, for rtems_bsp_delay() */
    392393
     394  bsp_clicks_per_usec    = BSP_bus_frequency/(BSP_time_base_divisor * 1000);
    393395  printk("BSP_Configuration.work_space_size = %x\n", BSP_Configuration.work_space_size);
    394396  work_space_start =
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-09-13      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/powerpc/psim/startup/bspstart.c

    rb9f34ad r07e9642c  
    55 *  before any of these are invoked.
    66 *
    7  *  COPYRIGHT (c) 1989-1999.
     7 *  COPYRIGHT (c) 1989-2007.
    88 *  On-Line Applications Research Corporation (OAR).
    99 *
     
    3030SPR_RW(SPRG1)
    3131
     32/*
     33 *  Driver configuration parameters
     34 */
     35boolean bsp_exceptions_in_RAM;
    3236
    3337extern unsigned long __rtems_end[];
     
    5256extern rtems_configuration_table  Configuration;
    5357rtems_configuration_table         BSP_Configuration;
    54 rtems_cpu_table   Cpu_table;
     58rtems_cpu_table                   Cpu_table;
    5559
    5660/*
     
    6569 * PCI Bus Frequency
    6670 */
    67  unsigned int BSP_bus_frequency;
    68  /*
    69   *  * Time base divisior (how many tick for 1 second).
    70   *   */
    71  unsigned int BSP_time_base_divisor;
    72 
    73 
     71unsigned int BSP_bus_frequency;
     72
     73/*
     74 * Time base divisior (how many tick for 1 second).
     75 */
     76unsigned int BSP_time_base_divisor;
    7477
    7578/*
     
    8184
    8285/*
    83  * system init stack and soft ir stack size
     86 * system init stack and soft irq stack size
    8487 */
    8588#define INIT_STACK_SIZE 0x1000
    8689#define INTR_STACK_SIZE CONFIGURE_INTERRUPT_STACK_MEMORY
    8790
    88 
    8991void BSP_panic(char *s)
    9092{
    91     printk("%s PANIC %s\n",_RTEMS_version, s);
    92       __asm__ __volatile ("sc");
     93  printk("%s PANIC %s\n",_RTEMS_version, s);
     94  __asm__ __volatile ("sc");
    9395}
    9496
    9597void _BSP_Fatal_error(unsigned int v)
    9698{
    97     printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
    98       __asm__ __volatile ("sc");
     99  printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
     100  __asm__ __volatile ("sc");
    99101}
    100102
     
    124126  rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
    125127#endif
    126 
    127128}
    128129
     
    140141
    141142  /*
    142    * Note we can not get CPU identification dynamically, so force current_ppc_cpu.
     143   * Note we can not get CPU identification dynamically, so
     144   * force current_ppc_cpu.
    143145   */
    144146  current_ppc_cpu = PPC_PSIM;
     
    174176   */
    175177
    176   Cpu_table.exceptions_in_RAM = FALSE;
     178  bsp_exceptions_in_RAM = FALSE;
    177179
    178180  BSP_Configuration.work_space_size += 1024;
  • c/src/lib/libbsp/powerpc/score603e/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-09-17      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c

    rb9f34ad r07e9642c  
    66 *  before any of these are invoked.
    77 *
    8  *  COPYRIGHT (c) 1989-1997.
     8 *  COPYRIGHT (c) 1989-2007.
    99 *  On-Line Applications Research Corporation (OAR).
    1010 *
     
    3737 */
    3838unsigned int BSP_time_base_divisor = 1000;  /* XXX - Just a guess */
     39
     40/*
     41 *  Driver configuration parameters
     42 */
     43uint32_t   bsp_clicks_per_usec;
    3944
    4045/*
     
    312317  Cpu_table.predriver_hook  = bsp_predriver_hook;   /* Init vectors    */
    313318  Cpu_table.postdriver_hook = SCORE603e_bsp_postdriver_hook;
    314   Cpu_table.clicks_per_usec = 66 / 4;  /* XXX get from linkcmds */
    315319  Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
    316320  Cpu_table.idle_task_stack_size = (3 * STACK_MINIMUM_SIZE);
     321
     322  bsp_clicks_per_usec = 66 / 4;  /* XXX get from linkcmds */
    317323
    318324#if ( PPC_USE_DATA_CACHE )
  • c/src/lib/libbsp/powerpc/ss555/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c

    rb9f34ad r07e9642c  
    66 *  before this routine is invoked.
    77 *
    8  *  COPYRIGHT (c) 1989-1998.
     8 *  COPYRIGHT (c) 1989-2007.
    99 *  On-Line Applications Research Corporation (OAR).
    1010 *
     
    5353
    5454char *rtems_progname;
     55
     56/*
     57 *  Driver configuration parameters
     58 */
     59uint32_t   bsp_clicks_per_usec;
     60uint32_t   bsp_clock_speed;            /* Serial clocks per second */
    5561
    5662/*
     
    187193      Cpu_table.interrupt_stack_size = 4 * 1024;
    188194
    189   Cpu_table.clicks_per_usec = BSP_CRYSTAL_HZ / 4 / 1000000;
    190   Cpu_table.clock_speed = BSP_CLOCK_HZ; /* for SCI baud rate generator */
     195  bsp_clicks_per_usec = BSP_CRYSTAL_HZ / 4 / 1000000;
     196  bsp_clock_speed    = BSP_CLOCK_HZ;   /* for SCI baud rate generator */
    191197
    192198  /*
  • c/src/lib/libbsp/powerpc/virtex/ChangeLog

    rb9f34ad r07e9642c  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * startup/bspstart.c: Eliminate PowerPC specific elements from the CPU
     4        Table. They have been replaced with variables named bsp_XXX as
     5        needed.
     6
    172007-11-07      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c

    rb9f34ad r07e9642c  
    9191uint32_t _top_of_ram;
    9292
     93/*
     94 *  Driver configuration parameters
     95 */
     96uint32_t   bsp_clicks_per_usec;
     97uint32_t   bsp_serial_per_sec;         /* Serial clocks per second */
     98boolean    bsp_serial_external_clock;
     99boolean    bsp_serial_xon_xoff;
     100boolean    bsp_serial_cts_rts;
     101uint32_t   bsp_serial_rate;
     102uint32_t   bsp_timer_average_overhead; /* Average overhead of timer in ticks */
     103uint32_t   bsp_timer_least_valid;      /* Least valid number from timer      */
     104boolean    bsp_timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
     105
    93106
    94107/*      Initialize whatever libc we are using
     
    197210
    198211  /* timebase register ticks/microsecond */
    199   Cpu_table.clicks_per_usec = (250000000 / 1000000);
    200 
    201   Cpu_table.serial_per_sec = 14625000; /* = (CPU Clock / UART Internal Clock Divisor) */
    202   Cpu_table.serial_external_clock = 0;
    203   Cpu_table.timer_internal_clock  = 1;
    204   Cpu_table.serial_xon_xoff = 0;
    205   Cpu_table.serial_cts_rts = 0;
    206   Cpu_table.serial_rate = 115200;
    207   Cpu_table.timer_average_overhead = 2;
    208   Cpu_table.timer_least_valid = 3;
    209   Cpu_table.exceptions_in_RAM = TRUE;
     212  bsp_clicks_per_usec = (250000000 / 1000000);
     213
     214  bsp_serial_per_sec = 14625000;
     215  bsp_serial_external_clock = 0;
     216  bsp_timer_internal_clock  = 1;
     217  bsp_serial_xon_xoff = 0;
     218  bsp_serial_cts_rts = 0;
     219  bsp_serial_rate = 115200;
     220  bsp_timer_average_overhead = 2;
     221  bsp_timer_least_valid = 3;
     222  bsp_exceptions_in_RAM = TRUE;
    210223
    211224  /*
Note: See TracChangeset for help on using the changeset viewer.