[syslinux] [PATCH][git-pull] memdisk/setup.c: Limit available RAM hack
Gene Cumm
gene.cumm at gmail.com
Sat Feb 5 14:31:17 PST 2011
git://git.zytor.com/users/genec/syslinux.git
Branch memdisk-maxmem-for-hpa
This is a preliminary hack to introduce a new option that will allow
an end-user to limit the amount of available RAM as returned by any
call that MEMDISK touches. This works by adding additional memory
reservation(s) (through insertrange()) to reserve the memory between
the specified address and the top of RAM.
For now, the parameter is int15maxres (implement INT15h MAX by
reservation) and is specified in bytes. I welcome feedback on its
functionality, default unit (ie 1 byte versus 1024 bytes or even unit
of 1024 bytes but must be divisible by 4), more appropriate names for
the parameter and function name. Eventually I think it would be
better to be more flexible in how the memory limit is specified (ie
"256M" rather than "268435456").
--
-Gene
More information about the Syslinux
mailing list