diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-01-01 19:56:55 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-11-17 15:10:46 +0800 |
commit | 0ea942f01d61f94f002e080d9f9e5a1a0e9168d6 (patch) | |
tree | cc463d10e4409b4a81e65454f64b053f916e6611 /src | |
parent | 3c7343686d7ff061f8a18a5b20f1f24640905588 (diff) | |
download | coreboot-0ea942f01d61f94f002e080d9f9e5a1a0e9168d6.tar.xz |
[NOT TESTED] expand frag_fffa1e83
Diffstat (limited to 'src')
-rw-r--r-- | src/northbridge/intel/haswell/mrc.asm | 12 | ||||
-rw-r--r-- | src/northbridge/intel/haswell/mrc_frags.c | 5 |
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); |