2008-01-29 Eric Norum <norume@aps.anl.gov>

* startup/bspstart.c: Fixes a lockup which occurs when a speculative
	load occurs from a particular range of memory.
This commit is contained in:
Joel Sherrill
2008-01-29 22:01:18 +00:00
parent 83a66aa52f
commit 27d4569a68
2 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2008-01-29 Eric Norum <norume@aps.anl.gov>
* startup/bspstart.c: Fixes a lockup which occurs when a speculative
load occurs from a particular range of memory.
2008-01-09 Eric Norum <norume@aps.anl.gov>
* include/bsp.h: Include <bsp/vectors.h>.

View File

@@ -228,6 +228,10 @@ bsp_predriver_hook(void)
* This routine does the bulk of the system initialization.
*/
#include <libcpu/spr.h>
SPR_RW(HID1)
void bsp_start( void )
{
unsigned char *stack;
@@ -317,6 +321,15 @@ VpdBufRec vpdData [] = {
printk("Going to start PCI buses scanning and initialization\n");
#endif
{
/* disable checking for memory-select errors */
*(volatile uint32_t*)0xe1002e44 |= 1;
/* clear all pending errors */
*(volatile uint32_t*)0xe1002e40 = 0xffffffff;
/* enable machine check for bad bus errors */
_write_HID1( _read_HID1() | 0x20000 );
}
printk("Build Date: %s\n",BSP_build_date);
BSP_vpdRetrieveFields( vpdData );