Changeset 4216c57 in rtems


Ignore:
Timestamp:
Dec 4, 2007, 10:19:37 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
c8e63e9
Parents:
6aa25da
Message:

2007-12-04 Joel Sherrill <joel.sherrill@…>

  • mpc5xx/console-generic/console-generic.c, mpc8260/timer/timer.c, new-exceptions/cpu.c, old-exceptions/cpu.c: Move interrupt_stack_size field from CPU Table to Configuration Table. Eliminate CPU Table from all ports. Delete references to CPU Table in all forms.
Location:
c/src/lib/libcpu/powerpc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r6aa25da r4216c57  
     12007-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * mpc5xx/console-generic/console-generic.c, mpc8260/timer/timer.c,
     4        new-exceptions/cpu.c, old-exceptions/cpu.c: Move interrupt_stack_size
     5        field from CPU Table to Configuration Table. Eliminate CPU Table from
     6        all ports. Delete references to CPU Table in all forms.
     7
    182007-12-04      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    29
  • c/src/lib/libcpu/powerpc/mpc5xx/console-generic/console-generic.c

    r6aa25da r4216c57  
    5252#include <libcpu/irq.h>
    5353
    54 
    55 extern rtems_cpu_table Cpu_table;       /* for CPU clock speed */
    5654
    5755/*
  • c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c

    r6aa25da r4216c57  
    5353static volatile uint32_t   Timer_starting;
    5454static rtems_boolean Timer_driver_Find_average_overhead;
    55 
    56 extern rtems_cpu_table Cpu_table;
    5755
    5856/*
  • c/src/lib/libcpu/powerpc/new-exceptions/cpu.c

    r6aa25da r4216c57  
    4141 *
    4242 *  INPUT PARAMETERS:
    43  *    cpu_table       - CPU table to initialize
    4443 *    thread_dispatch - address of disptaching routine
    4544 */
    4645
    4746void _CPU_Initialize(
    48   rtems_cpu_table  *cpu_table,
    4947  void      (*thread_dispatch)      /* ignored on this CPU */
    5048)
    5149{
    52   _CPU_Table = *cpu_table;
    53 
    54   { unsigned hasFixed = 0;
    55   /* assert that our BSP has fixed PR288 */
    56   __asm__ __volatile__ ("mfspr %0, %2":"=r"(hasFixed):"0"(hasFixed),"i"(SPRG0));
    57   if ( PPC_BSP_HAS_FIXED_PR288 != hasFixed ) {
    58     BSP_panic("This BSP needs to fix PR#288");
    59   }
     50  {
     51    unsigned hasFixed = 0;
     52    /* assert that our BSP has fixed PR288 */
     53    __asm__ __volatile__ ("mfspr %0, %2":
     54                          "=r"(hasFixed):"0"(hasFixed),"i"(SPRG0));
     55    if ( PPC_BSP_HAS_FIXED_PR288 != hasFixed ) {
     56      BSP_panic("This BSP needs to fix PR#288");
     57    }
    6058  }
    6159}
  • c/src/lib/libcpu/powerpc/old-exceptions/cpu.c

    r6aa25da r4216c57  
    7272
    7373void _CPU_Initialize(
    74   rtems_cpu_table  *cpu_table,
    7574  void      (*thread_dispatch)      /* ignored on this CPU */
    7675)
     
    108107  asm volatile("mtspr 0x112, %0" : "=r" (i) : "0" (i)); /* SPRG 2 */
    109108#endif
    110 
    111   _CPU_Table = *cpu_table;
    112109}
    113110
Note: See TracChangeset for help on using the changeset viewer.