Sfoglia il codice sorgente

[cmdline] Use "cpuid --ext" instead of "cpuid --amd"

Avoid potential confusion in the documentation by using a
vendor-neutral name for the extended (AMD-defined) feature set.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 anni fa
parent
commit
cdee7866f5
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4
    1
      src/arch/x86/hci/commands/cpuid_cmd.c

+ 4
- 1
src/arch/x86/hci/commands/cpuid_cmd.c Vedi File

@@ -42,6 +42,9 @@ struct cpuid_options {
42 42
 
43 43
 /** "cpuid" option list */
44 44
 static struct option_descriptor cpuid_opts[] = {
45
+	OPTION_DESC ( "ext", 'e', no_argument,
46
+		      struct cpuid_options, amd, parse_flag ),
47
+	/* "--amd" retained for backwards compatibility */
45 48
 	OPTION_DESC ( "amd", 'a', no_argument,
46 49
 		      struct cpuid_options, amd, parse_flag ),
47 50
 	OPTION_DESC ( "ecx", 'c', no_argument,
@@ -51,7 +54,7 @@ static struct option_descriptor cpuid_opts[] = {
51 54
 /** "cpuid" command descriptor */
52 55
 static struct command_descriptor cpuid_cmd =
53 56
 	COMMAND_DESC ( struct cpuid_options, cpuid_opts, 1, 1,
54
-		       "[--amd] [--ecx] <bit>" );
57
+		       "[--ext] [--ecx] <bit>" );
55 58
 
56 59
 /**
57 60
  * The "cpuid" command

Loading…
Annulla
Salva