#include "userprog/exception.h"
#include <inttypes.h>
#include <stdio.h>
#include "userprog/gdt.h"
#include "threads/interrupt.h"
#include "threads/thread.h"
Go to the source code of this file.
Functions | |
static void | kill (struct intr_frame *) |
static void | page_fault (struct intr_frame *) |
void | exception_init (void) |
void | exception_print_stats (void) |
Variables | |
static long long | page_fault_cnt |
void exception_init | ( | void | ) |
Definition at line 31 of file exception.c.
References INTR_OFF, INTR_ON, intr_register_int(), kill(), and page_fault().
Referenced by main().
void exception_print_stats | ( | void | ) |
Definition at line 66 of file exception.c.
References page_fault_cnt, and printf().
Referenced by print_stats().
static void kill | ( | struct intr_frame * | f | ) | [static] |
Definition at line 73 of file exception.c.
References intr_frame::cs, intr_dump_frame(), intr_name(), PANIC, printf(), SEL_KCSEG, SEL_UCSEG, thread_exit(), thread_name(), and intr_frame::vec_no.
Referenced by exception_init(), and page_fault().
static void page_fault | ( | struct intr_frame * | f | ) | [static] |
Definition at line 124 of file exception.c.
References intr_frame::error_code, intr_enable(), kill(), page_fault_cnt, PF_P, PF_U, PF_W, printf(), and write().
Referenced by exception_init().
long long page_fault_cnt [static] |