UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
trap.c File Reference
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#include "traps.h"
#include "spinlock.h"

Go to the source code of this file.


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


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

Function Documentation

void idtinit ( void  )

Definition at line 30 of file trap.c.

void trap ( struct trapframe tf)

Definition at line 37 of file trap.c.

void tvinit ( void  )

Definition at line 18 of file trap.c.

Variable Documentation

struct gatedesc idt[256]

Definition at line 12 of file trap.c.

uint ticks

Definition at line 15 of file trap.c.

struct spinlock tickslock

Definition at line 14 of file trap.c.

uint vectors[]

Definition at line 24 of file vectors.pl.