summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-12 16:53:20 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-12 16:53:20 -0800
commit4980115d540a6ccfcfb141312c7f4f017972d316 (patch)
tree7698e7bc3822bf45b0e188803a28193e44ec1d7f
parentfc38cbecfcdb8237f22e8def62bced022260b035 (diff)
downloadsyslinux-4980115d540a6ccfcfb141312c7f4f017972d316.tar.gz
Change the minimum number of shuffle descriptors to 64.
Only use 64 as a static guarantee of the number of shuffle descriptors; corresponding to 768 bytes of memory.
-rw-r--r--com32/lib/syslinux/shuffle.c2
-rw-r--r--doc/comboot.doc4
2 files changed, 3 insertions, 3 deletions
diff --git a/com32/lib/syslinux/shuffle.c b/com32/lib/syslinux/shuffle.c
index bb020a15..708382c7 100644
--- a/com32/lib/syslinux/shuffle.c
+++ b/com32/lib/syslinux/shuffle.c
@@ -64,7 +64,7 @@ static void __constructor __syslinux_get_desc_block_size(void)
reg.eax.w[0] = 0x0011;
__intcall(0x22, &reg, &reg);
- desc_block_size = (reg.eflags.l & EFLAGS_CF) ? 256 : reg.ecx.w[0];
+ desc_block_size = (reg.eflags.l & EFLAGS_CF) ? 64 : reg.ecx.w[0];
}
/* Allocate descriptor memory in these chunks */
diff --git a/doc/comboot.doc b/doc/comboot.doc
index 9324e4e4..46afc64c 100644
--- a/doc/comboot.doc
+++ b/doc/comboot.doc
@@ -561,9 +561,9 @@ AX=0011h [3.05] Maximum number of shuffle descriptors
Output: CX maximum number of descriptors
This routine reports the maximum number of shuffle descriptors
- permitted in a call to function 0012h.
+ permitted in a call to functions 0012h, 001Ah and 001Bh.
- This is guaranteed to be at least 256. For the current
+ This is guaranteed to be at least 64. For the current
version, this is 682 for all derivatives.