Changeset 21c468b in rtems for cpukit/score


Ignore:
Timestamp:
Mar 29, 2002, 2:17:58 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
8c1756e
Parents:
04e6ba42
Message:

2002-03-28 Ralf Corsepius <corsepiu@…>

  • cpu.c: Replace NO_TABLE_MOVE-support by external function (code moved to libcpu/sparc/tbr/tbr.c).
  • cpu.h: Replace NO_TABLE_MOVE-support by external function (code moved to libcpu/sparc/tbr/tbr.h).
  • sparc.h: Add sparc_init_tbr (implemented in libcpu/sparc/tbr/tbr.c).
Location:
cpukit/score/cpu/sparc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/sparc/ChangeLog

    r04e6ba42 r21c468b  
     12002-03-28      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * cpu.c: Replace NO_TABLE_MOVE-support by external function
     4        (code moved to libcpu/sparc/tbr/tbr.c).
     5        * cpu.h: Replace NO_TABLE_MOVE-support by external function
     6        (code moved to libcpu/sparc/tbr/tbr.h).
     7        * sparc.h: Add sparc_init_tbr (implemented in libcpu/sparc/tbr/tbr.c).
     8
    192002-03-27      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    210
  • cpukit/score/cpu/sparc/cpu.c

    r04e6ba42 r21c468b  
    5656  void                  *pointer;
    5757
    58 #ifndef NO_TABLE_MOVE
    59   unsigned32             trap_table_start;
    60   unsigned32             tbr_value;
    61   CPU_Trap_table_entry  *old_tbr;
    62   CPU_Trap_table_entry  *trap_table;
    63 
    64   /*
    65    *  Install the executive's trap table.  All entries from the original
    66    *  trap table are copied into the executive's trap table.  This is essential
    67    *  since this preserves critical trap handlers such as the window underflow
    68    *  and overflow handlers.  It is the responsibility of the BSP to provide
    69    *  install these in the initial trap table.
    70    */
    71 
    72  
    73   trap_table_start = (unsigned32) &_CPU_Trap_Table_area;
    74   if (trap_table_start & (SPARC_TRAP_TABLE_ALIGNMENT-1))
    75     trap_table_start = (trap_table_start + SPARC_TRAP_TABLE_ALIGNMENT) &
    76                        ~(SPARC_TRAP_TABLE_ALIGNMENT-1);
    77 
    78   trap_table = (CPU_Trap_table_entry *) trap_table_start;
    79 
    80   sparc_get_tbr( tbr_value );
    81 
    82   old_tbr = (CPU_Trap_table_entry *) (tbr_value & 0xfffff000);
    83 
    84   memcpy( trap_table, (void *) old_tbr, 256 * sizeof( CPU_Trap_table_entry ) );
    85 
    86   sparc_set_tbr( trap_table_start );
    87 
    88 #endif
    89 
     58  sparc_init_tbr();
     59 
    9060#if (SPARC_HAS_FPU == 1)
    9161
Note: See TracChangeset for help on using the changeset viewer.