diff options
| author | Erwan Velu <erwanaliasr1@gmail.com> | 2010-06-24 22:32:03 +0200 |
|---|---|---|
| committer | Erwan Velu <erwanaliasr1@gmail.com> | 2010-06-24 22:32:03 +0200 |
| commit | bba5bfb0665a1c609b47ec9071d0dcfe5b8c8d47 (patch) | |
| tree | 4534da28e4800305ac328df7844bcb7845cd0540 /com32/modules | |
| parent | a9c8bd1a98973165c0b217c0f52319828d398d3b (diff) | |
| download | syslinux-bba5bfb0665a1c609b47ec9071d0dcfe5b8c8d47.tar.gz | |
ifcpu: Adding PAE support
Diffstat (limited to 'com32/modules')
| -rw-r--r-- | com32/modules/ifcpu.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/com32/modules/ifcpu.c b/com32/modules/ifcpu.c index 5e59e17b..cf6282f5 100644 --- a/com32/modules/ifcpu.c +++ b/com32/modules/ifcpu.c @@ -36,7 +36,6 @@ static inline void error(const char *msg) static void usage(void) { error("Run one command if system match some CPU features, another if it doesn't. \n" - "\n" "Usage: \n" " label ifcpu \n" " com32 ifcpu.c32 \n" @@ -53,10 +52,11 @@ static void usage(void) " dry-run : just do the detection, don't boot \n" "\n" "cpu_features could be:\n" - " 64 : CPU have to be x86_64 compatible \n" - " hvm : Processor must have hardware virtualization (hvm or svm) \n" + " 64 : Processor is x86_64 compatible (lm cpu flag)\n" + " hvm : Processor features hardware virtualization (hvm or svm cpu flag)\n" " multicore : Processor must be multi-core \n" - " smp : System have to be SMP \n" + " smp : System must be multi-processor \n" + " pae : Processor features Physical Address Extension (PAE)\n" "\n" "if you want to match many cpu features, just separate them with a single space.\n"); } @@ -132,6 +132,11 @@ int main(int argc, char *argv[]) printf(" 64bit : %s on this system\n", show_bool(cpu.flags.lm)); hardware_matches = cpu.flags.lm && hardware_matches; + } else if (!strcmp(argv[i], "pae")) { + if (debug) + printf(" pae : %s on this system\n", + show_bool(cpu.flags.pae)); + hardware_matches = cpu.flags.pae && hardware_matches; } else if (!strcmp(argv[i], "hvm")) { if (debug) printf(" hvm : %s on this system\n", |
