summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-01-01 19:56:55 +0800
committerIru Cai <mytbk920423@gmail.com>2019-11-17 15:10:46 +0800
commit0ea942f01d61f94f002e080d9f9e5a1a0e9168d6 (patch)
treecc463d10e4409b4a81e65454f64b053f916e6611 /src
parent3c7343686d7ff061f8a18a5b20f1f24640905588 (diff)
downloadcoreboot-0ea942f01d61f94f002e080d9f9e5a1a0e9168d6.tar.xz
[NOT TESTED] expand frag_fffa1e83
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/intel/haswell/mrc.asm12
-rw-r--r--src/northbridge/intel/haswell/mrc_frags.c5
2 files changed, 5 insertions, 12 deletions
diff --git a/src/northbridge/intel/haswell/mrc.asm b/src/northbridge/intel/haswell/mrc.asm
index 6a4f052469..a9c2e93767 100644
--- a/src/northbridge/intel/haswell/mrc.asm
+++ b/src/northbridge/intel/haswell/mrc.asm
@@ -1445,18 +1445,6 @@ push ebx
call frag_fffa1e83
add esp, 12
-mov eax, dword [edi + 1]
-mov al, byte [eax]
-mov byte [ebx + 0x23a], al
-mov eax, dword [edi + 1]
-mov al, byte [eax + 1]
-mov byte [ebx + 0x389], al
-mov eax, dword [edi + 1]
-mov al, byte [eax + 2]
-mov byte [ebx + 0x534], al
-mov eax, dword [edi + 1]
-mov al, byte [eax + 3]
-mov byte [ebx + 0x683], al
mov eax, dword [0xff7d7538]
mov eax, dword [eax]
cmp dword [eax - 4], 0xfeadb00b
diff --git a/src/northbridge/intel/haswell/mrc_frags.c b/src/northbridge/intel/haswell/mrc_frags.c
index a4826399df..7d5385ef5a 100644
--- a/src/northbridge/intel/haswell/mrc_frags.c
+++ b/src/northbridge/intel/haswell/mrc_frags.c
@@ -277,6 +277,11 @@ void frag_fffa1e83(void *ebx, void *esi, void *edi)
}
}
+ u8 *p1 = *(u8**)(edi + 1);
+ *(u8*)(ebx + 0x23a) = p1[0];
+ *(u8*)(ebx + 0x389) = p1[1];
+ *(u8*)(ebx + 0x534) = p1[2];
+ *(u8*)(ebx + 0x683) = p1[3];
}
void frag_fffa5d3c(void *bar, uint32_t offset);