jos/kern/monitor.h

21 lines
658 B
C
Raw Normal View History

2018-08-30 12:17:20 -07:00
#ifndef JOS_KERN_MONITOR_H
#define JOS_KERN_MONITOR_H
#ifndef JOS_KERNEL
# error "This is a JOS kernel header; user programs should not #include it"
#endif
struct Trapframe;
// Activate the kernel monitor,
// optionally providing a trap frame indicating the current state
// (NULL if none).
void monitor(struct Trapframe *tf);
// Functions implementing monitor commands.
int mon_help(int argc, char **argv, struct Trapframe *tf);
int mon_kerninfo(int argc, char **argv, struct Trapframe *tf);
int mon_backtrace(int argc, char **argv, struct Trapframe *tf);
2019-04-19 13:19:15 -07:00
int mon_showmappings(int argc, char **argv, struct Trapframe *tf);
2018-08-30 12:17:20 -07:00
#endif // !JOS_KERN_MONITOR_H