update lab1-8 codes and docs. now version is 0.2

This commit is contained in:
chyyuu
2012-08-26 18:04:26 +08:00
parent 15f7ebf37b
commit d537948e30
134 changed files with 1268 additions and 1005 deletions

View File

@@ -8,7 +8,7 @@
#include <vmm.h>
#include <proc.h>
#include <kdebug.h>
#include <monitor.h>
#include <kmonitor.h>
#include <assert.h>
#define STACKFRAME_DEPTH 20

View File

@@ -2,7 +2,7 @@
#include <string.h>
#include <mmu.h>
#include <trap.h>
#include <monitor.h>
#include <kmonitor.h>
#include <kdebug.h>
/* *
@@ -82,7 +82,7 @@ runcmd(char *buf, struct trapframe *tf) {
/***** Implementations of basic kernel monitor commands *****/
void
monitor(struct trapframe *tf) {
kmonitor(struct trapframe *tf) {
cprintf("Welcome to the kernel debug monitor!!\n");
cprintf("Type 'help' for a list of commands.\n");

View File

@@ -3,7 +3,7 @@
#include <trap.h>
void monitor(struct trapframe *tf);
void kmonitor(struct trapframe *tf);
int mon_help(int argc, char **argv, struct trapframe *tf);
int mon_kerninfo(int argc, char **argv, struct trapframe *tf);

View File

@@ -1,7 +1,7 @@
#include <defs.h>
#include <stdio.h>
#include <intr.h>
#include <monitor.h>
#include <kmonitor.h>
static bool is_panic = 0;
@@ -27,7 +27,7 @@ __panic(const char *file, int line, const char *fmt, ...) {
panic_dead:
intr_disable();
while (1) {
monitor(NULL);
kmonitor(NULL);
}
}