/**********************************************************************
**
** 	Broadcom Corp. Confidential
** 	Copyright 1998, 1999, 2000 Broadcom Corp.  All Rights Reserved.
**
**
**	File:         hw_init.S
**	Description: low level board initialisation for BCM93725 board 
**	Created:      sjeck
**
**
**
**	REVISION:
**
**		$Log: $
**
**
**********************************************************************/
#include <asm/asm.h>
#include <asm/mipsregs.h>
#include <asm/regdef.h>
#include <asm/stackframe.h>
#include "asm-offsets.h"

	.align	5
	NESTED(tivo_handle_irq, PT_SIZE, ra)
	.set	noat
	SAVE_ALL
	CLI
	.set	at
	.set	noreorder

	// Get the pending CPU interrupts anded with irq mask
	mfc0	a0,CP0_CAUSE
	mfc0	t2,CP0_STATUS
	andi	a0,0xff00
	and	a0,t2

handle_it:
	jal	do_vector
	 move	a1,sp
	j	ret_from_irq
	 nop

	END(tivo_handle_irq)
