src: Replace min/max() with MIN/MAX()
Change-Id: I63b95144f2022685c60a1bd6de5af3c1f059992e Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37828 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
361a935332
commit
ba9b504ec5
@@ -14,8 +14,8 @@
|
||||
*/
|
||||
|
||||
#include <cbmem.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <symbols.h>
|
||||
#include <soc/emi.h>
|
||||
|
||||
@@ -23,5 +23,5 @@
|
||||
|
||||
void *cbmem_top_chipset(void)
|
||||
{
|
||||
return (void *)min((uintptr_t)_dram + sdram_size(), MAX_DRAM_ADDRESS);
|
||||
return (void *)MIN((uintptr_t)_dram + sdram_size(), MAX_DRAM_ADDRESS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user