xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 41c4bbb505f4389a5c1660b407cd4073d7a72aab
parent b0751a3e9bfce88cb07c1a540ceabf21f2d53b31
Author: Austin Clements <amdragon@mit.edu>
Date:   Wed,  1 Sep 2010 02:14:35 -0400

Make it easy to change the number of CPUs

Diffstat:
MMakefile | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -179,7 +179,10 @@ GDBPORT = $(shell expr `id -u` % 5000 + 25000) QEMUGDB = $(shell if $(QEMU) -help | grep -q '^-gdb'; \ then echo "-gdb tcp::$(GDBPORT)"; \ else echo "-s -p $(GDBPORT)"; fi) -QEMUOPTS = -smp 2 -hdb fs.img xv6.img +ifndef CPUS +CPUS := 2 +endif +QEMUOPTS = -hdb fs.img xv6.img -smp $(CPUS) qemu: fs.img xv6.img $(QEMU) -serial mon:stdio $(QEMUOPTS)