aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk/e820func.c
diff options
context:
space:
mode:
authorhpa <hpa>2003-04-14 22:28:04 +0000
committerhpa <hpa>2003-04-14 22:28:04 +0000
commit476c12b58c2ffce36ae7e99df0e55a0feb69ed35 (patch)
treee4dadb931248bcaeb117e208fcb2d30d816da914 /memdisk/e820func.c
parent2e51f37795425915e95690b7fb4cce627ca7fb34 (diff)
downloadsyslinux.git-476c12b58c2ffce36ae7e99df0e55a0feb69ed35.tar.gz
syslinux.git-476c12b58c2ffce36ae7e99df0e55a0feb69ed35.tar.xz
syslinux.git-476c12b58c2ffce36ae7e99df0e55a0feb69ed35.zip
Use s
Diffstat (limited to 'memdisk/e820func.c')
-rw-r--r--memdisk/e820func.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/memdisk/e820func.c b/memdisk/e820func.c
index 57ab0fca..01fd6cda 100644
--- a/memdisk/e820func.c
+++ b/memdisk/e820func.c
@@ -18,6 +18,7 @@
*/
#include <stdint.h>
+#include "memdisk.h" /* For memset() */
#include "e820.h"
#define MAXRANGES 64
@@ -28,14 +29,8 @@ int nranges;
void e820map_init(void)
{
- struct e820range *rp = ranges;
- unsigned int rdw = sizeof(ranges) >> 2;
+ memset(ranges, 0, sizeof(ranges));
nranges = 1;
-
- asm volatile("cld ; rep ; stosl %2,%%es:(%0)"
- : "+D" (rp), "+c" (rdw)
- : "a" (0)
- : "memory");
ranges[1].type = -1;
}