Arthur Heymans has uploaded this change for review.

View Change

nb/intel/nehalem: Use common clflush function

Change-Id: I0ca311c12f013e54e23ff0427421bfad0b747ea6
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
---
M src/northbridge/intel/nehalem/raminit.c
1 file changed, 1 insertion(+), 6 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/37195/1
diff --git a/src/northbridge/intel/nehalem/raminit.c b/src/northbridge/intel/nehalem/raminit.c
index a393cb7..fe5d5c9 100644
--- a/src/northbridge/intel/nehalem/raminit.c
+++ b/src/northbridge/intel/nehalem/raminit.c
@@ -21,6 +21,7 @@
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <cpu/x86/msr.h>
+#include <cpu/x86/cache.h>
#include <cbmem.h>
#include <cf9_reset.h>
#include <arch/cbfs.h>
@@ -97,12 +98,6 @@

#include <lib.h> /* Prototypes */

-
-static void clflush(u32 addr)
-{
- asm volatile ("clflush (%0)"::"r" (addr));
-}
-
typedef struct _u128 {
u64 lo;
u64 hi;

To view, visit change 37195. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0ca311c12f013e54e23ff0427421bfad0b747ea6
Gerrit-Change-Number: 37195
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-MessageType: newchange