aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.c
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-05-02 08:56:51 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-05-02 08:56:51 -0700
commitf64daac1ca99a8c49dbe18bb38398d55f15ab504 (patch)
tree5535c5631eaba61007fcb8f9152e5a22333c1b5f /com32/hdt/hdt-cli.c
parentb82f770d01303e1a5a0dedb006b992e01f6b6276 (diff)
downloadsyslinux-f64daac1ca99a8c49dbe18bb38398d55f15ab504.tar.gz
syslinux-f64daac1ca99a8c49dbe18bb38398d55f15ab504.tar.xz
syslinux-f64daac1ca99a8c49dbe18bb38398d55f15ab504.zip
hdt: Add memory mode (CLI)
The memory mode will be used to dump the memory map (via e820, e802, e801 and 88). Only `show e820' is implemented. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/hdt/hdt-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 5fe1436a..c77a8bef 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -45,6 +45,7 @@ struct cli_mode_descr *list_modes[] = {
&vesa_mode,
&disk_mode,
&vpd_mode,
+ &memory_mode,
NULL,
};
@@ -196,6 +197,11 @@ void set_mode(cli_mode_t mode, struct s_hardware* hardware)
snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ",
CLI_VPD);
break;
+ case MEMORY_MODE:
+ hdt_cli.mode = mode;
+ snprintf(hdt_cli.prompt, sizeof(hdt_cli.prompt), "%s> ",
+ CLI_MEMORY);
+ break;
default:
/* Invalid mode */
printf("Unknown mode, please choose among:\n");