summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/nehalem
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-06-30 09:40:19 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-07-01 10:15:26 +0200
commit931c1dcec043e6baac718a94f8731cc31461d4db (patch)
tree5a7df8a3924f3feec91121c2f98988c84d52faf1 /src/northbridge/intel/nehalem
parentf41cb4ecd23c951e1c1c4fef0c99772983a3eba4 (diff)
stdlib: Drop duplicates of min() and max()
Change-Id: Ib2f6fad735e085d237a0d46e0586e123eef6e0e2 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/6161 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/northbridge/intel/nehalem')
-rw-r--r--src/northbridge/intel/nehalem/raminit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/northbridge/intel/nehalem/raminit.c b/src/northbridge/intel/nehalem/raminit.c
index 2ddc35caee..761dc527bf 100644
--- a/src/northbridge/intel/nehalem/raminit.c
+++ b/src/northbridge/intel/nehalem/raminit.c
@@ -25,6 +25,7 @@
#endif
#if REAL
+#include <stdlib.h>
#include <console/console.h>
#include <string.h>
#include <arch/hlt.h>
@@ -571,9 +572,6 @@ static int find_lowest_bit_set32(u32 val)
return -1;
}
-#define max(a,b) (((a) > (b)) ? (a) : (b))
-#define min(a,b) (((a) < (b)) ? (a) : (b))
-
enum {
DEVICE_TYPE = 2,
MODULE_TYPE = 3,