Ignore:
Timestamp:
Feb 20, 2003, 10:07:22 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8860f103
Parents:
f3ceb2bf
Message:

2003-02-20 Till Straumann <strauman@…>

PR 349/bsps

  • mpc6xx/exceptions/raw_exception.c, mpc6xx/mmu/bat.c, mpc6xx/mmu/pte121.c, shared/include/cpuIdent.c, shared/include/cpuIdent.h, shared/src/Makefile.am, shared/src/stack.c, shared/src/stackTrace.h, powerpc/registers.h:
    • undo improper 'fix' who broke mpc604r identification
    • fix: 7400 identification PVR value was wrong
    • enhance 'setdbat()' to switch OFF a given BAT if called with 0 size
    • fix: page table support bugfix
    • enhancement: provide routines to take and print stack trace snapshots
    • add definitions for HID1 and DABR SPRs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c

    rf3ceb2bf rd49389a  
    4444  ubat bat;
    4545
    46   bl = (size >> 17) - 1;
     46  bl = (size >= (1<<17)) ? (size >> 17) - 1 : 0;
    4747  /* 603, 604, etc. */
    4848  wimgxpp = flags & (_PAGE_WRITETHRU | _PAGE_NO_CACHE
     
    5454    bat.bat.batu.vp = 1;
    5555  bat_addrs[bat_index].start = virt;
    56   bat_addrs[bat_index].limit = virt + ((bl + 1) << 17) - 1;
     56  bat_addrs[bat_index].limit = virt + (bl ? ((bl + 1) << 17) - 1 : 0);
    5757  bat_addrs[bat_index].phys = phys;
     58  if ( 0 == bl ) {
     59    /* size of 0 tells us to switch it off */
     60        bat.bat.batu.vp = 0;
     61        bat.bat.batu.vs = 0;
     62  }
    5863  switch (bat_index) {
    5964  case 0 : asm_setdbat0(bat.word[0], bat.word[1]); break;
Note: See TracChangeset for help on using the changeset viewer.