summaryrefslogtreecommitdiff
path: root/com32/lib/syslinux/shuffle.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-03-31 17:29:20 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2009-03-31 17:29:20 -0700
commitf1917f5fec631b839f1cf7ea153446210cf5cccf (patch)
treee68b8f4551af65f470641dafe328d25c8c1da9ee /com32/lib/syslinux/shuffle.c
parenta0db5a79c1dd9e6e7e454c2d0593f86e017757d4 (diff)
downloadsyslinux-f1917f5fec631b839f1cf7ea153446210cf5cccf.tar.gz
shuffle: use SMT_RESERVED for the forbidden region
If we're going to mark memory unusable, it's cleaner to mark it SMT_RESERVED. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'com32/lib/syslinux/shuffle.c')
-rw-r--r--com32/lib/syslinux/shuffle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/shuffle.c b/com32/lib/syslinux/shuffle.c
index b29f0043..79fb2bec 100644
--- a/com32/lib/syslinux/shuffle.c
+++ b/com32/lib/syslinux/shuffle.c
@@ -114,7 +114,7 @@ int syslinux_do_shuffle(struct syslinux_movelist *fraglist,
goto bail;
/* Avoid using the low 1 MB for the shuffle area -- this avoids
possible interference with the real mode code or stack */
- if (syslinux_add_memmap(&rxmap, 0, 1024*1024, SMT_ALLOC))
+ if (syslinux_add_memmap(&rxmap, 0, 1024*1024, SMT_RESERVED))
goto bail;
for (mp = fraglist; mp; mp = mp->next) {
if (syslinux_add_memmap(&rxmap, mp->src, mp->len, SMT_ALLOC) ||