Changeset 14ec2d4 in rtems
- Timestamp:
- Jun 13, 2003, 1:41:05 PM (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 9274ea7
- Parents:
- c5c2122
- Location:
- c/src/lib/libbsp/powerpc/shared
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/shared/ChangeLog
rc5c2122 r14ec2d4 1 2003-06-13 Till Straumann <strauman@slac.stanford.edu> 2 3 PR 415/bsps 4 * include/bsp.h, pci/detect_raven_bridge.c, startup/bspstart.c: 5 Support enabling MCP exceptions on the host bridge. This can 6 be used for memory probing on the VME bus. 7 1 8 2003-04-15 Joel Sherrill <joel@OARcorp.com> 2 9 -
c/src/lib/libbsp/powerpc/shared/include/bsp.h
rc5c2122 r14ec2d4 92 92 extern int BSP_connect_clock_handler (void); 93 93 94 /* clear hostbridge errors 95 * 96 * enableMCP: whether to enable MCP checkstop / machine check interrupts 97 * on the hostbridge and in HID0. 98 * 99 * NOTE: HID0 and MEREN are left alone if this flag is 0 100 * 101 * quiet : be silent 102 * 103 * RETURNS : raven MERST register contents (lowermost 16 bits), 0 if 104 * there were no errors 105 */ 106 extern unsigned long _BSP_clear_hostbridge_errors(int enableMCP, int quiet); 107 108 94 109 /* 95 110 * TM27 stuff -
c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
rc5c2122 r14ec2d4 4 4 5 5 #include <libcpu/io.h> 6 #include <libcpu/spr.h> 6 7 7 8 #include <bsp.h> … … 13 14 #include <rtems/bspIo.h> 14 15 16 SPR_RW(HID0) 17 15 18 #define RAVEN_MPIC_IOSPACE_ENABLE 0x1 16 19 #define RAVEN_MPIC_MEMSPACE_ENABLE 0x2 … … 20 23 #define RAVEN_CLEAR_EVENTS_MASK 0xf9000000 21 24 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 34 22 35 #define pci BSP_pci_configuration 23 36 24 37 extern const pci_config_access_functions pci_direct_functions; 25 38 extern const pci_config_access_functions pci_indirect_functions; 39 40 unsigned long 41 _BSP_clear_hostbridge_errors(int enableMCP, int quiet) 42 { 43 unsigned merst; 44 45 merst = in_be32(RAVEN_MPIC_MERST); 46 /* write back value to clear status */ 47 out_be32(RAVEN_MPIC_MERST, merst); 48 49 if (enableMCP) { 50 if (!quiet) 51 printk("Enabling MCP generation on hostbridge errors\n"); 52 out_be32(RAVEN_MPIC_MEREN, MEREN_VAL); 53 _write_HID0(_read_HID0() | HID0_EMCP ); 54 } else { 55 if ( !quiet && enableMCP ) { 56 printk("leaving MCP interrupt disabled\n"); 57 } 58 } 59 return (merst & 0xffff); 60 } 26 61 27 62 void detect_host_bridge() -
c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
rc5c2122 r14ec2d4 324 324 residualCopy.VitalProductData.TimeBaseDivisor : 4000); 325 325 326 /* clear hostbridge errors and enable MCP */ 327 _BSP_clear_hostbridge_errors(1/*enableMCP*/, 0/*quiet*/); 328 326 329 /* Allocate and set up the page table mappings 327 330 * This is only available on >604 CPUs.
Note: See TracChangeset
for help on using the changeset viewer.