[SeaBIOS] [PATCH] ata: Many CPUs cause seabios not to find boot disk
huaitong.han at intel.com
Mon Aug 3 17:49:14 CEST 2015
On Mon, 2015-08-03 at 10:32 -0400, Kevin O'Connor wrote:
> If I understand your patch, it seems to be trying to force large
> mptable allocations to fail while still allowing other f-seg
> allocations. I think a simpler approach would be to just limit the
> mptable allocation and leave the malloc implementation unchanged. See
> patch below.
Yes, it's a better way to solve problem.
> u16 mpclength = ((struct mptable_config_s *)p->physaddr)->length;
> + if (length + mpclength > BUILD_MAX_MPTABLE_FSEG)
it's better that warning dprintf is added before return.
> + return;
More information about the SeaBIOS