Changeset bf939b0 in rtems


Ignore:
Timestamp:
Jul 18, 2003, 5:05:39 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
adc5f630
Parents:
552af999
Message:

2003-07-18 Till Straumann <strauman@…>

PR 415/bsps

  • pci/detect_raven_bridge.c, startup/bspstart.c: This patch reverts enabling MCP interrupts for the motorola_powerpc BSPs. REASON: pci config space scanning (as e.g. done by the DEC Ethernet driver) would raise machine check exceptions.
Location:
c/src/lib/libbsp/powerpc/shared
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/ChangeLog

    r552af999 rbf939b0  
     12003-07-18      Till Straumann <strauman@slac.stanford.edu>
     2
     3        PR 415/bsps
     4        * pci/detect_raven_bridge.c, startup/bspstart.c:
     5        This patch reverts enabling MCP interrupts for the motorola_powerpc
     6        BSPs. REASON: pci config space scanning (as e.g. done by the DEC
     7        Ethernet driver) would raise machine check exceptions.
     8
    192003-07-16      Greg Menke <gregory.menke@gsfc.nasa.gov>
    210
  • c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c

    r552af999 rbf939b0  
    1414#include <rtems/bspIo.h>
    1515
    16 SPR_RW(HID0)
    17 
    1816#define RAVEN_MPIC_IOSPACE_ENABLE       0x1
    1917#define RAVEN_MPIC_MEMSPACE_ENABLE      0x2
     
    2321#define RAVEN_CLEAR_EVENTS_MASK         0xf9000000
    2422
    25 #define RAVEN_MPIC_MEREN                0xfeff0020
    26 #define RAVEN_MPIC_MERST                0xfeff0024
    27 /* enable machine check on all conditions
    28  * EXCEPT for signalled master abort (which
    29  * can be caused by PCI configuration space
    30  * accesses to non-present devices)
    31  * - of course, this is sort of a hack :-(
    32  */
    33 #define MEREN_VAL                               0x2d00
     23#define RAVEN_MPIC_MEREN                ((volatile unsigned *)0xfeff0020)
     24#define RAVEN_MPIC_MERST                ((volatile unsigned *)0xfeff0024)
     25/* enable machine check on all conditions */
     26#define MEREN_VAL                               0x2f00
    3427
    3528#define pci BSP_pci_configuration
     
    5144                                printk("Enabling MCP generation on hostbridge errors\n");
    5245                        out_be32(RAVEN_MPIC_MEREN, MEREN_VAL);
    53                         _write_HID0(_read_HID0() | HID0_EMCP );
    5446                } else {
     47                        out_be32(RAVEN_MPIC_MEREN, 0);
    5548                        if ( !quiet && enableMCP ) {
    5649                                printk("leaving MCP interrupt disabled\n");
  • c/src/lib/libbsp/powerpc/shared/startup/bspstart.c

    r552af999 rbf939b0  
    337337                                           residualCopy.VitalProductData.TimeBaseDivisor : 4000);
    338338
    339   /* clear hostbridge errors and enable MCP */
    340   _BSP_clear_hostbridge_errors(1/*enableMCP*/, 0/*quiet*/);
     339  /* clear hostbridge errors but leave MCP disabled -
     340   * PCI config space scanning code will trip otherwise :-(
     341   */
     342  _BSP_clear_hostbridge_errors(0 /* enableMCP */, 0/*quiet*/);
    341343
    342344
Note: See TracChangeset for help on using the changeset viewer.