update codes for os course-YAO-class, fall, 2013
This commit is contained in:
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
@@ -186,14 +186,9 @@ static void slob_free(void *block, int size)
|
||||
|
||||
|
||||
|
||||
void check_slob(void) {
|
||||
cprintf("check_slob() success\n");
|
||||
}
|
||||
|
||||
void
|
||||
slob_init(void) {
|
||||
cprintf("use SLOB allocator\n");
|
||||
check_slob();
|
||||
}
|
||||
|
||||
inline void
|
||||
|
||||
Executable → Regular
@@ -314,11 +314,14 @@ quick_check() {
|
||||
## kernel image
|
||||
osimg=$(make_print ucoreimg)
|
||||
|
||||
## sfs image
|
||||
sfsimg=$(make_print sfsimg)
|
||||
|
||||
## swap image
|
||||
swapimg=$(make_print swapimg)
|
||||
|
||||
## set default qemu-options
|
||||
qemuopts="-hda $osimg -drive file=$swapimg,media=disk,cache=writeback"
|
||||
qemuopts="-hda $osimg -drive file=$swapimg,media=disk,cache=writeback -drive file=$sfsimg,media=disk,cache=writeback"
|
||||
|
||||
## set break-function, default is readline
|
||||
brkfun=readline
|
||||
|
||||
Executable → Regular
Executable → Regular
Reference in New Issue
Block a user