[BACK]Return to err_marvel.c CVS log [TXT][DIR] Up to [Development] / linux-2.4-xfs / arch / alpha / kernel

File: [Development] / linux-2.4-xfs / arch / alpha / kernel / err_marvel.c (download)

Revision 1.1, Wed Dec 31 00:54:49 2003 UTC (13 years, 9 months ago) by cattelan
Branch: MAIN
CVS Tags: HEAD

Initial Import 2.4.24pre2

/*
 *	linux/arch/alpha/kernel/err_marvel.c
 *
 *	Copyright (C) 2001 Jeff Wiedemeier (Compaq Computer Corporation)
 *
 */

#include <linux/init.h>
#include <linux/pci.h>
#include <linux/sched.h>

#include <asm/io.h>
#include <asm/console.h>
#include <asm/core_marvel.h>
#include <asm/hwrpb.h>
#include <asm/smp.h>

#include "err_impl.h"
#include "proto.h"


void
marvel_machine_check(u64 vector, u64 la_ptr, struct pt_regs *regs)
{
	struct el_subpacket *el_ptr = (struct el_subpacket *)la_ptr;

	/*
	 * Sync the processor
	 */
	mb();
	draina();

	el_process_subpacket(el_ptr);

	switch(vector) {
	case SCB_Q_SYSEVENT:
		printk(KERN_CRIT "MARVEL SYSEVENT %ld\n", vector);
		break;
	case SCB_Q_SYSMCHK:
	case SCB_Q_SYSERR:
		printk(KERN_CRIT "MARVEL SYSMCHK/ERR %ld\n", vector);
		break;
	default:
		/* Don't know it - pass it up.  */
		return ev7_machine_check(vector, la_ptr, regs);
	}	

        /* Release the logout frame.  */
	wrmces(0x7);
	mb();
}

void
marvel_register_error_handlers(void)
{
	ev7_register_error_handlers();
}