]> xenbits.xensource.com Git - seabios.git/commit
mptable: Don't create mptable if it is very large
authorKevin O'Connor <kevin@koconnor.net>
Mon, 3 Aug 2015 14:16:39 +0000 (10:16 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 4 Aug 2015 14:05:27 +0000 (10:05 -0400)
commit9ee2e26255661a191b0ff9fa276d545ce59845c2
tree8564d77212df28afda37beec4616d7807f923400
parent4c6de9ef3f67020d28d57822bb824312e67a31c4
mptable: Don't create mptable if it is very large

Very large mptable structures can fill up the space in the f-segment
and cause other important f-segment allocations to fail.  Limit the
maximum size of the mptable to prevent this.

On QEMU, with the current maximum size of 600 bytes, the mptable will
not be created in configurations of ~20 cpus or more.  The mptable is
rarely used in modern OSes so this should not be a problem.

Reported-by: Huaitong Han <huaitong.han@intel.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/config.h
src/fw/biostables.c