/* Determine the amount of usable RAM below 4GiB, taking into account any carve-out that may be assigned.  */
static ulong usable_ram_size_below_4g(void)
/* Determine the amount of usable RAM below 4GiB, taking into account any carve-out that may be assigned.  */
static ulong usable_ram_size_below_4g(void)
{
	ulong total_size_below_4g;
	ulong usable_size_below_4g;
	if (gd->ram_size < SZ_2G)
		total_size_below_4g = gd->ram_size;
	else
		total_size_below_4g = SZ_2G;
	usable_size_below_4g = total_size_below_4g - carveout_size();
	return usable_size_below_4g;
}