diff options
| author | hpa <hpa> | 2001-12-16 00:03:28 +0000 |
|---|---|---|
| committer | hpa <hpa> | 2001-12-16 00:03:28 +0000 |
| commit | 9d0869d27f663580d408e76cb2ea210714dea553 (patch) | |
| tree | 4106606ef55794780784a35af434a42eb1bcc94b /memdisk | |
| parent | b9f4a599f1bd31369f3f3f49e05d2102ceb295fd (diff) | |
| download | syslinux-1.65.tar.gz | |
Make a valiant, and probably futile, attempt to free memory aftersyslinux-1.65
running the PXE stack.
Diffstat (limited to 'memdisk')
| -rw-r--r-- | memdisk/setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c index e75bcb40..2ab5b98d 100644 --- a/memdisk/setup.c +++ b/memdisk/setup.c @@ -473,6 +473,9 @@ uint32_t setup(void) dosmem_k = rdz_16(BIOS_BASEMEM); pptr->olddosmem = dosmem_k; stddosmem = dosmem_k << 10; + /* If INT 15 E820 and INT 12 disagree, go with the most conservative */ + if ( stddosmem > dos_mem ) + stddosmem = dos_mem; pptr->driveno = geometry->driveno; pptr->drivetype = geometry->type; |
