mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-05-11 18:47:07 +08:00
LAB 4 IS DONE.
This commit is contained in:
23
lab/kern/trap.h
Normal file
23
lab/kern/trap.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* See COPYRIGHT for copyright information. */
|
||||
|
||||
#ifndef JOS_KERN_TRAP_H
|
||||
#define JOS_KERN_TRAP_H
|
||||
#ifndef JOS_KERNEL
|
||||
# error "This is a JOS kernel header; user programs should not #include it"
|
||||
#endif
|
||||
|
||||
#include <inc/trap.h>
|
||||
#include <inc/mmu.h>
|
||||
|
||||
/* The kernel's interrupt descriptor table */
|
||||
extern struct Gatedesc idt[];
|
||||
extern struct Pseudodesc idt_pd;
|
||||
|
||||
void trap_init(void);
|
||||
void trap_init_percpu(void);
|
||||
void print_regs(struct PushRegs *regs);
|
||||
void print_trapframe(struct Trapframe *tf);
|
||||
void page_fault_handler(struct Trapframe *);
|
||||
void backtrace(struct Trapframe *);
|
||||
|
||||
#endif /* JOS_KERN_TRAP_H */
|
||||
Reference in New Issue
Block a user