summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-19 10:39:44 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-19 10:39:44 -0700
commit265f6b172bde2822d72403f7bf2bc259352304a2 (patch)
tree28caec5b4b0856eb8084a38c9efd318a37ddd30f
parent6697cb5fbdd5cd5bbb018f63939b36edc70d0662 (diff)
downloadsyslinux-265f6b172bde2822d72403f7bf2bc259352304a2.tar.gz
Add address aliases for freedos and msdos
-rw-r--r--com32/modules/chain.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 799954e8..8179b0a6 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -558,6 +558,12 @@ int main(int argc, char *argv[])
} else if (!strcmp(argv[i], "-ntldr") && argv[i+1]) {
opt.seg = 0x2000; /* NTLDR wants this address */
opt.loadfile = argv[++i];
+ } else if (!strcmp(argv[i], "-freedos") && argv[i+1]) {
+ opt.seg = 0x60; /* FREEDOS wants this address */
+ opt.loadfile = argv[++i];
+ } else if (!strcmp(argv[i], "-msdos") && argv[i+1]) {
+ opt.seg = 0x70; /* MS-DOS 2.0+ wants this address */
+ opt.loadfile = argv[++i];
} else if (!strcmp(argv[i], "-swap")) {
opt.swap = true;
} else if (!strcmp(argv[i], "keeppxe")) {