Changeset bd1cc5f0 in rtems


Ignore:
Timestamp:
Dec 1, 2007, 12:24:25 AM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
e72dc606
Parents:
3fa48ee
Message:

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

  • mpc6xx/mmu/bat.c, mpc6xx/mmu/pte121.c: use new feature-checks from cpuIdent.h rather than filtering CPU types when checking for availability of high BATs and an MMU with hardware page-table lookup.
Location:
c/src/lib/libcpu/powerpc
Files:
3 edited

Legend:

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

    r3fa48ee rbd1cc5f0  
     12007-11-30      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * mpc6xx/mmu/bat.c, mpc6xx/mmu/pte121.c: use new
     4        feature-checks from cpuIdent.h rather than filtering
     5        CPU types when checking for availability of high BATs
     6        and an MMU with hardware page-table lookup.
     7
    182007-11-30      Till Straumann <strauman@slac.stanford.edu>
    29
     
    512        decrementer works slightly differently.
    613
    7 2007-11-30      Till Straumann <strauman@slac.stanford.edu>
    8 
    9         * mpc6xx/mmu/bat.c, mpc6xx/mmu/pte121.c
    10142007-11-29      Till Straumann <strauman@slac.stanford.edu>
    1115
  • c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c

    r3fa48ee rbd1cc5f0  
    163163bat_addrs_init ()
    164164{
    165   ppc_cpu_id_t cpu = get_ppc_cpu_type ();
    166 
    167165  ubat bat;
    168166
     
    186184
    187185
    188   if ((cpu == PPC_7455 || cpu == PPC_7457)
    189       && (HID0_7455_HIGH_BAT_EN & _read_HID0 ())) {
     186  if ( ppc_cpu_has_8_bats() && (HID0_7455_HIGH_BAT_EN & _read_HID0 ())) {
    190187    GETBAT (DBAT4, bat.words.u, bat.words.l);
    191188    bat_addrs_put (&bat, TYP_D, 4);
     
    252249    return 0;
    253250  if (i >= 4 && i < 8) {
    254     /* don't use current_ppc_cpu because we don't know if it has been set already */
    255     ppc_cpu_id_t cpu = get_ppc_cpu_type ();
    256     if (cpu != PPC_7455 && cpu != PPC_7457)
     251    if ( ! ppc_cpu_has_8_bats() )
    257252      return -1;
    258253    /* OK, we're on the right hardware;
     
    299294  /* bit < 17 is not really legal but we aliased it to 0 in the past */
    300295  if (bit > (11 + 17)) {
    301     /* don't use current_ppc_cpu because we don't know if it has been set already */
    302     ppc_cpu_id_t cpu = get_ppc_cpu_type ();
    303     if (cpu != PPC_7455 && cpu != PPC_7457)
     296    if ( ! ppc_cpu_has_8_bats() )
    304297      return -1;
    305298
  • c/src/lib/libcpu/powerpc/mpc6xx/mmu/pte121.c

    r3fa48ee rbd1cc5f0  
    429429   *               (Could still be useful for debugging, though)
    430430   */
    431   if (   PPC_604 != current_ppc_cpu
    432       && PPC_604e != current_ppc_cpu
    433       && PPC_604r != current_ppc_cpu
    434       && PPC_750  != current_ppc_cpu
    435       && PPC_7400 != current_ppc_cpu
    436       && PPC_7455 != current_ppc_cpu
    437       && PPC_7457 != current_ppc_cpu
    438      )
     431  if ( ! ppc_cpu_has_hw_ptbl_lkup() )
    439432    return 0;                   /* unsupported by this CPU */
    440433
Note: See TracChangeset for help on using the changeset viewer.