summaryrefslogtreecommitdiff
path: root/memdisk/e820func.c
diff options
context:
space:
mode:
authorhpa <hpa>2001-12-11 09:20:18 +0000
committerhpa <hpa>2001-12-11 09:20:18 +0000
commit24612a86668be7a66deabe2644804c5a6e3370ad (patch)
treedbaf4e940ced39b76485d257f78d3e126da5b1e3 /memdisk/e820func.c
parent7de02ddf8887f37a5e3c0f810cbf45ac7029c165 (diff)
downloadsyslinux-24612a86668be7a66deabe2644804c5a6e3370ad.tar.gz
Checkpoint: many many changes, now successfully loads the
target OS bootsector, but then fails at a later point.
Diffstat (limited to 'memdisk/e820func.c')
-rw-r--r--memdisk/e820func.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/memdisk/e820func.c b/memdisk/e820func.c
index d9c8465a..4d0ec150 100644
--- a/memdisk/e820func.c
+++ b/memdisk/e820func.c
@@ -30,7 +30,8 @@ void e820map_init(void)
{
nranges = 1;
asm volatile("cld ; rep ; stosl %0,%%es:(%1)"
- :: "a" (0), "S" (ranges), "c" (sizeof(ranges) >> 2));
+ :: "a" (0), "D" (ranges), "c" (sizeof(ranges) >> 2)
+ : "edi", "ecx");
ranges[1].type = -1;
}