Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/system/xtrap.c File Reference

#include <kernel.h>
#include <mips.h>
#include <interrupt.h>

Include dependency graph for xtrap.c:

Go to the source code of this file.

Functions

void xtrap (long cause, long *frame)

Variables

char * trap_names []
char * irq_names []


Detailed Description

xtrap

Id
xtrap.c 221 2007-07-11 18:45:46Z mschul

Definition in file xtrap.c.


Function Documentation

void xtrap ( long  cause,
long *  frame 
)

Generic XINU Trap (Interrupt) Handler.

Parameters:
cause the contents of the cause register used to decode the trap
frame pointer to the interrupt frame with saved status

Definition at line 68 of file xtrap.c.

References interruptVector, irq_names, IRQREC_A0, IRQREC_A1, IRQREC_A2, IRQREC_A3, IRQREC_AT, IRQREC_CAUSE, IRQREC_EPC, IRQREC_FP, IRQREC_GP, IRQREC_HI, IRQREC_K0, IRQREC_K1, IRQREC_LO, IRQREC_RA, IRQREC_S0, IRQREC_S1, IRQREC_S2, IRQREC_S3, IRQREC_S4, IRQREC_S5, IRQREC_S6, IRQREC_S7, IRQREC_SP, IRQREC_STATUS, IRQREC_T0, IRQREC_T1, IRQREC_T2, IRQREC_T3, IRQREC_T4, IRQREC_T5, IRQREC_T6, IRQREC_T7, IRQREC_T8, IRQREC_T9, IRQREC_V0, IRQREC_V1, IRQREC_ZER, kprintf(), NULL, and trap_names.


Variable Documentation

char* irq_names[]

Initial value:

{ 
        "Software interrupt request 0",
        "Software interrupt request 1",
        "Hardware interrupt request 0, eth1",
        "Hardware interrupt request 1, UART",
        "Hardware interrupt request 2, eth0",
        "Hardware interrupt request 3",
        "Hardware interrupt request 4",
        "Hardware interrupt request 5, Timer"
}

Definition at line 49 of file xtrap.c.

Referenced by xtrap().

char* trap_names[]

Definition at line 13 of file xtrap.c.

Referenced by xtrap().


Generated on Thu Oct 9 22:35:16 2008 for xinu by  doxygen 1.5.5