Changeset ea39487 in rtems


Ignore:
Timestamp:
Dec 1, 2007, 1:26:41 AM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4af7ef3f
Parents:
e72dc606
Message:

2007-11-30 Till Straumann <strauman@…>

  • new-exceptions/raw_exception.c, new-exceptions/raw_exception.h, old-exception/cpu.c: define bsp_exceptions_in_RAM variable. This is probably only used by the simulator (were else can you install something to ROM ??).
Location:
c/src/lib/libcpu/powerpc
Files:
4 edited

Legend:

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

    re72dc606 rea39487  
     12007-11-30      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * new-exceptions/raw_exception.c, new-exceptions/raw_exception.h,
     4        old-exception/cpu.c: define bsp_exceptions_in_RAM variable.
     5        This is probably only used by the simulator (were else
     6        can you install something to ROM ??).
     7
    182007-11-30      Till Straumann <strauman@slac.stanford.edu>
    29
  • c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.c

    re72dc606 rea39487  
    4040void * codemove(void *, const void *, unsigned int, unsigned long);
    4141
     42boolean bsp_exceptions_in_RAM = TRUE;
    4243
    4344static void* ppc_get_vector_addr(rtems_vector vector)
  • c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.h

    re72dc606 rea39487  
    320320extern int ppc_get_exception_config (rtems_raw_except_global_settings** config);
    321321
     322/* This variable is initialized to 'TRUE' by default;
     323 * BSPs which have their vectors in ROM should set it
     324 * to FALSE prior to initializing raw exceptions.
     325 *
     326 * I suspect the only candidate is the simulator.
     327 * After all, the value of this variable is used to
     328 * determine where to install the prologue code and
     329 * installing to ROM on anyting that's real ROM
     330 * will fail anyways.
     331 *
     332 * This should probably go away... (T.S. 2007/11/30)
     333 */
     334extern boolean bsp_exceptions_in_RAM;
     335
    322336# endif /* ASM */
    323337
  • c/src/lib/libcpu/powerpc/old-exceptions/cpu.c

    re72dc606 rea39487  
    5757int _CPU_last_spurious = 0;
    5858
     59/* This variable is initialized to 'TRUE' by default;
     60 * BSPs which have their vectors in ROM should set it
     61 * to FALSE prior to initializing raw exceptions.
     62 *
     63 * I suspect the only candidate is the simulator.
     64 * After all, the value of this variable is used to
     65 * determine where to install the prologue code and
     66 * installing to ROM on anyting that's real ROM
     67 * will fail anyways.
     68 *
     69 * This should probably go away... (T.S. 2007/11/30)
     70 */
     71boolean bsp_exceptions_in_RAM = TRUE;
     72
    5973void _CPU_Initialize(
    6074  rtems_cpu_table  *cpu_table,
     
    309323  proc_ptr   ignored;
    310324  extern void (*bsp_spurious_handler)(uint32_t   vector, CPU_Interrupt_frame *);
    311   extern boolean bsp_exceptions_in_RAM;
    312325
    313326  *old_handler = _ISR_Vector_table[ vector ];
Note: See TracChangeset for help on using the changeset viewer.