/* Set physical memory to a particular value when the whole region fits on one page. */
static void x86_phys_memset_page(phys_addr_t map_addr, uintptr_t offset, int c, unsigned size)
/* Set physical memory to a particular value when the whole region fits on one page. */
static void x86_phys_memset_page(phys_addr_t map_addr, uintptr_t offset, int c, unsigned size)
{
	const uintptr_t window = LARGE_PAGE_SIZE;
	assert(window + LARGE_PAGE_SIZE <
	       gd->relocaddr - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_STACK_SIZE);
	x86_phys_map_page(window, map_addr, 1);
	memset((void *)(window + offset), c, size);
}