summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2019-07-02 14:09:38 -0400
committerFrans Kaashoek <[email protected]>2019-07-02 14:09:38 -0400
commit84c759fc02c7843b64a1bafc843cd80fe3c9d7ee (patch)
treebf89c5b37bf1a24c1d8a0a71ab10eaecb5ee7b0d
parent37ac6f8f4fa9a7fc1ddcacc3a97b30c400e52123 (diff)
downloadxv6-labs-84c759fc02c7843b64a1bafc843cd80fe3c9d7ee.tar.gz
xv6-labs-84c759fc02c7843b64a1bafc843cd80fe3c9d7ee.tar.bz2
xv6-labs-84c759fc02c7843b64a1bafc843cd80fe3c9d7ee.zip
x
-rw-r--r--Makefile2
-rw-r--r--kernel/proc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9090680..88130e1 100644
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ OBJCOPY = $(TOOLPREFIX)objcopy
OBJDUMP = $(TOOLPREFIX)objdump
# CFLAGS = -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -MD -ggdb -Werror -fno-omit-frame-pointer -O
-CFLAGS = -Wall -Werror -O0 -fno-omit-frame-pointer -ggdb
+CFLAGS = -Wall -Werror -O -fno-omit-frame-pointer -ggdb
CFLAGS += -mcmodel=medany
CFLAGS += -ffreestanding -fno-common -nostdlib -mno-relax
CFLAGS += -I.
diff --git a/kernel/proc.c b/kernel/proc.c
index 71d4146..c12d97e 100644
--- a/kernel/proc.c
+++ b/kernel/proc.c
@@ -402,7 +402,7 @@ scheduler(void)
{
struct proc *p;
struct cpu *c = mycpu();
- int next;
+ int next = 0;
c->proc = 0;
for(;;){