diff --git a/Makefile b/Makefile index c7a289f..fac3618 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ ext4.img: check: $(BIN) minimal.dtb $(KERNEL_DATA) $(INITRD_DATA) $(DISKIMG_FILE) @$(call notice, Ready to launch Linux kernel. Please be patient.) - $(Q)./$(BIN) -k $(KERNEL_DATA) --smp $(SMP) -b minimal.dtb -i $(INITRD_DATA) $(OPTS) + $(Q)./$(BIN) -k $(KERNEL_DATA) -c $(SMP) -b minimal.dtb -i $(INITRD_DATA) $(OPTS) build-image: scripts/build-image.sh diff --git a/main.c b/main.c index e8c6506..9c35d31 100644 --- a/main.c +++ b/main.c @@ -455,11 +455,11 @@ static void handle_options(int argc, struct option opts[] = { {"kernel", 1, NULL, 'k'}, {"dtb", 1, NULL, 'b'}, {"initrd", 1, NULL, 'i'}, {"disk", 1, NULL, 'd'}, - {"smp", 1, NULL, 's'}, {"help", 0, NULL, 'h'}, + {"smp", 1, NULL, 'c'}, {"help", 0, NULL, 'h'}, }; int c; - while ((c = getopt_long(argc, argv, "k:b:i:d:h", opts, &optidx)) != -1) { + while ((c = getopt_long(argc, argv, "k:b:i:d:c:h", opts, &optidx)) != -1) { switch (c) { case 'k': *kernel_file = optarg; @@ -473,7 +473,7 @@ static void handle_options(int argc, case 'd': *disk_file = optarg; break; - case 's': + case 'c': *hart_number = atoi(optarg); break; case 'h':