Merge branch 'lab1' into lab2
This commit is contained in:
commit
c56b8ebcbd
2
CODING
2
CODING
|
@ -15,8 +15,6 @@ We have the following conventions in our code:
|
||||||
|
|
||||||
* Function names are all lower-case separated by underscores.
|
* Function names are all lower-case separated by underscores.
|
||||||
|
|
||||||
* Beginning-of-line indentation via tabs, not spaces.
|
|
||||||
|
|
||||||
* Preprocessor macros are always UPPERCASE.
|
* Preprocessor macros are always UPPERCASE.
|
||||||
There are a few grandfathered exceptions: assert, panic,
|
There are a few grandfathered exceptions: assert, panic,
|
||||||
static_assert, offsetof.
|
static_assert, offsetof.
|
||||||
|
|
4
README.info
Normal file
4
README.info
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Lab 1 : Tue 10:00 ~ 11:20
|
||||||
|
Lab 2 : Tue 12:00 ~ 13:20
|
||||||
|
Lab 3 : Wed 15:00 ~ 16:20
|
||||||
|
Lab 4 : Fri 14:00 ~ 15:20
|
|
@ -21,6 +21,7 @@ struct Command {
|
||||||
int (*func)(int argc, char** argv, struct Trapframe* tf);
|
int (*func)(int argc, char** argv, struct Trapframe* tf);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// LAB 1: add your command to here...
|
||||||
static struct Command commands[] = {
|
static struct Command commands[] = {
|
||||||
{ "help", "Display this list of commands", mon_help },
|
{ "help", "Display this list of commands", mon_help },
|
||||||
{ "kerninfo", "Display information about the kernel", mon_kerninfo },
|
{ "kerninfo", "Display information about the kernel", mon_kerninfo },
|
||||||
|
@ -57,7 +58,9 @@ mon_kerninfo(int argc, char **argv, struct Trapframe *tf)
|
||||||
int
|
int
|
||||||
mon_backtrace(int argc, char **argv, struct Trapframe *tf)
|
mon_backtrace(int argc, char **argv, struct Trapframe *tf)
|
||||||
{
|
{
|
||||||
// Your code here.
|
// LAB 1: Your code here.
|
||||||
|
// HINT 1: use read_ebp().
|
||||||
|
// HINT 2: print the current ebp on the first line (not current_ebp[0])
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ vprintfmt(void (*putch)(int, void*), void *putdat, const char *fmt, va_list ap)
|
||||||
|
|
||||||
// (unsigned) octal
|
// (unsigned) octal
|
||||||
case 'o':
|
case 'o':
|
||||||
// Replace this with your code.
|
// LAB 1: Replace this with your code.
|
||||||
putch('X', putdat);
|
putch('X', putdat);
|
||||||
putch('X', putdat);
|
putch('X', putdat);
|
||||||
putch('X', putdat);
|
putch('X', putdat);
|
||||||
|
|
5
student.info
Normal file
5
student.info
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
OSU ID (xxx-yyy-zzz) : 933456789
|
||||||
|
FLIP ID (e.g., jangye) : jangye
|
||||||
|
Name : Yeongjin Jang
|
||||||
|
CS 444/544 ? : 444
|
||||||
|
Lab Class # : Lab 1
|
Loading…
Reference in New Issue
Block a user