projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix two bugs in the base Pintos code:
[pintos-anon]
/
src
/
threads
/
init.c
diff --git
a/src/threads/init.c
b/src/threads/init.c
index 8495826da379a3624e061d3a53cc8432aa04764c..2931704120c67bf39441ce56aa469a128b556e39 100644
(file)
--- a/
src/threads/init.c
+++ b/
src/threads/init.c
@@
-41,11
+41,6
@@
size_t ram_pages;
/* Page directory with kernel mappings only. */
uint32_t *base_page_dir;
/* Page directory with kernel mappings only. */
uint32_t *base_page_dir;
-/* -mlfqs:
- If false (default), use round-robin scheduler.
- If true, use multi-level feedback queue scheduler. */
-bool enable_mlfqs;
-
#ifdef FILESYS
/* -f: Format the file system? */
static bool format_filesys;
#ifdef FILESYS
/* -f: Format the file system? */
static bool format_filesys;
@@
-254,7
+249,7
@@
parse_options (char **argv)
else if (!strcmp (name, "-rs"))
random_init (atoi (value));
else if (!strcmp (name, "-mlfqs"))
else if (!strcmp (name, "-rs"))
random_init (atoi (value));
else if (!strcmp (name, "-mlfqs"))
-
enable
_mlfqs = true;
+
thread
_mlfqs = true;
#ifdef USERPROG
else if (!strcmp (name, "-ul"))
user_page_limit = atoi (value);
#ifdef USERPROG
else if (!strcmp (name, "-ul"))
user_page_limit = atoi (value);