summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-12-29 20:07:58 +0800
committerIru Cai <mytbk920423@gmail.com>2019-11-17 15:10:46 +0800
commit73876b294545733c773fce5fc9843a0f0a8d4765 (patch)
tree0583de5213de9d373c622a159cb468f7e38d8d30 /src
parent6ef7b8746f8886827f6cf6404c7706675e00e57b (diff)
downloadcoreboot-73876b294545733c773fce5fc9843a0f0a8d4765.tar.xz
small fix
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/intel/haswell/mrc_init_memory.asm7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/northbridge/intel/haswell/mrc_init_memory.asm b/src/northbridge/intel/haswell/mrc_init_memory.asm
index 49020a8653..a2b68a4028 100644
--- a/src/northbridge/intel/haswell/mrc_init_memory.asm
+++ b/src/northbridge/intel/haswell/mrc_init_memory.asm
@@ -82,6 +82,7 @@ extern copy_mrc_input
extern frag_fffc1ea8
extern frag_fffc2026
global ref_fffcbf28
+extern memcpy
initialize_txt:
push ebx
@@ -183,7 +184,7 @@ add esp, 12
cmp dword [ebp - 0x509c], 0x11
jne short loc_fffc1dc2 ; jne 0xfffc1dc2
-test bl, bl
+test al, al
mov eax, 0x8000000e
je loc_fffc23a2 ; je 0xfffc23a2
@@ -424,17 +425,15 @@ or eax, eax
jne loc_fffc238d
loc_fffc2311:
-mov ecx, dword [ebp - 0x50bc]
mov dword [ebp - 0x503a], 0xfd4
push edx
lea edx, [ebp - 0x503a]
-mov eax, dword [ecx]
push 0x5022
push edx
mov edx, dword [ebp - 0x50a0]
add edx, 0x18
push edx
-call dword [eax + 0x50] ; ucall
+call memcpy
mov eax, dword [ebp - 0x50a0]
mov edx, 1
add eax, 0x503a