xv6/trap.c File Reference

#include "types.h"
#include "defs.h"
#include "param.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#include "traps.h"
#include "spinlock.h"

Go to the source code of this file.

Functions

void tvinit (void)
void idtinit (void)
void trap (struct trapframe *tf)

Variables

struct gatedesc idt [256]
uint vectors []
struct spinlock tickslock
int ticks


Function Documentation

void idtinit ( void   ) 

Definition at line 29 of file trap.c.

References idt, and lidt().

void trap ( struct trapframe tf  ) 

void tvinit ( void   ) 

Definition at line 17 of file trap.c.

References DPL_USER, idt, initlock(), SEG_KCODE, SETGATE, T_SYSCALL, tickslock, and vectors.

Referenced by mpmain().


Variable Documentation

struct gatedesc idt[256]

Definition at line 11 of file trap.c.

Referenced by idtinit(), and tvinit().

int ticks

Definition at line 14 of file trap.c.

Referenced by sys_sleep(), and trap().

Definition at line 13 of file trap.c.

Referenced by sys_sleep(), trap(), and tvinit().

Referenced by tvinit().


Generated on Fri Jan 7 12:25:49 2011 for xv6 by  doxygen 1.5.6