summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--broadwell_refcode_librem.asm272
1 files changed, 136 insertions, 136 deletions
diff --git a/broadwell_refcode_librem.asm b/broadwell_refcode_librem.asm
index e28cab8..c0044ac 100644
--- a/broadwell_refcode_librem.asm
+++ b/broadwell_refcode_librem.asm
@@ -52,7 +52,7 @@ pop ecx
pop eax
push ebx
push 0
-call fcn_0000058b ; call 0x58b
+call init_system_agent ; call 0x58b
mov dword [esp], ref_000206b5 ; mov dword [esp], 0x206b5
call refcode_printk ; call 0x1545e
add esp, 0xc
@@ -109,7 +109,7 @@ push 0
call get_pci_dev_base ; call 0x16c9a
add eax, 0x48
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov ebx, eax
lea eax, [ebp - 0xc]
and ebx, 0xfffffffe
@@ -182,7 +182,7 @@ push esi
push ebx
call fcn_0001c678 ; call 0x1c678
mov esi, eax
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
sub esp, 0xc
push ref_0002955c ; push 0x2955c
mov ebx, eax
@@ -215,7 +215,7 @@ push esi
push 0
push 1
push 0x2e7
-call fcn_0001790f ; call 0x1790f
+call msr_or ; call 0x1790f
add esp, 0x10
loc_000001fc: ; not directly referenced
@@ -246,7 +246,7 @@ pop esi
pop ebp
ret
-fcn_00000231:
+program_sa_bars:
push ebp
mov ebp, esp
push edi
@@ -254,7 +254,7 @@ push esi
push ebx
sub esp, 0xc
mov ebx, dword [ebp + 8]
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
push edx
mov esi, eax
push 0
@@ -272,7 +272,7 @@ or eax, 1
push eax
lea eax, [edi + 0x48]
push eax
-call fcn_00017f28 ; call 0x17f28
+call write64 ; call 0x17f28
mov eax, dword [ebx + 1]
add esp, 0xc
xor edx, edx
@@ -283,7 +283,7 @@ push eax
lea eax, [edi + 0x68]
add edi, 0x40
push eax
-call fcn_00017f28 ; call 0x17f28
+call write64 ; call 0x17f28
mov eax, dword [ebx + 1]
add esp, 0xc
xor edx, edx
@@ -292,7 +292,7 @@ push edx
or eax, 1
push eax
push edi
-call fcn_00017f28 ; call 0x17f28
+call write64 ; call 0x17f28
mov ecx, dword [ebx + 1]
add esp, 0xc
xor edx, edx
@@ -303,7 +303,7 @@ push eax
mov eax, dword [ecx + 4]
add eax, 0x5420
push eax
-call fcn_00017f28 ; call 0x17f28
+call write64 ; call 0x17f28
add esp, 0x10
cmp esi, 0x40660
jne short loc_000002e8 ; jne 0x2e8
@@ -317,7 +317,7 @@ push eax
mov eax, dword [ecx + 4]
add eax, 0x5408
push eax
-call fcn_00017f28 ; call 0x17f28
+call write64 ; call 0x17f28
add esp, 0x10
loc_000002e8:
@@ -328,7 +328,7 @@ pop edi
pop ebp
ret
-fcn_000002f0:
+enable_sa_clock_gating:
push ebp
mov ebp, esp
sub esp, 0x10
@@ -343,7 +343,7 @@ add esp, 0x10
leave
ret
-fcn_00000311:
+install_sa_data_hob:
push ebp
mov ebp, esp
push edi
@@ -355,7 +355,7 @@ lea eax, [ebp - 0x20]
push eax
push 0x73
push 4
-call fcn_000197df ; call 0x197df
+call refcode_create_hob ; call 0x197df
mov esi, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -508,7 +508,7 @@ pop edi
pop ebp
ret
-fcn_000004ad:
+report_sa_pcie_code_version:
push ebp
mov ebp, esp
push ebx
@@ -602,7 +602,7 @@ mov ebx, dword [ebp - 4]
leave
ret
-fcn_0000058b:
+init_system_agent:
push ebp
mov ebp, esp
push edi
@@ -610,7 +610,7 @@ push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov edi, eax
lea eax, [ebp - 0x24]
push eax
@@ -657,12 +657,12 @@ add esp, 0x10
loc_00000611:
sub esp, 0xc
push dword [ebp - 0x24]
-call fcn_00000231 ; call 0x231
+call program_sa_bars ; call 0x231
pop eax
pop edx
push dword [ebp - 0x24]
push esi
-call fcn_00000311 ; call 0x311
+call install_sa_data_hob ; call 0x311
call dummy_15479 ; call 0x15479
add esp, 0x10
test al, al
@@ -677,7 +677,7 @@ add esp, 0x10
loc_00000644:
sub esp, 0xc
push dword [ebp - 0x24]
-call fcn_000004ad ; call 0x4ad
+call report_sa_pcie_code_version ; call 0x4ad
add esp, 0x10
cmp edi, 0x40660
sete bl
@@ -719,7 +719,7 @@ push edx
push edx
push dword [ebp - 0x24]
push esi
-call fcn_0000211b ; call 0x211b
+call train_dmi ; call 0x211b
add esp, 0x10
test bl, bl
je short loc_000006de ; je 0x6de
@@ -759,7 +759,7 @@ push eax
push eax
push dword [ebp - 0x24]
push esi
-call fcn_00004b08 ; call 0x4b08
+call peg_init ; call 0x4b08
add esp, 0x10
loc_00000714:
@@ -778,7 +778,7 @@ push eax
push eax
push dword [ebp - 0x24]
push esi
-call fcn_00001663 ; call 0x1663
+call igd_init ; call 0x1663
call dummy_15479 ; call 0x15479
add esp, 0x10
test al, al
@@ -827,9 +827,9 @@ add esp, 0x10
loc_000007a6:
sub esp, 0xc
push dword [ebp - 0x24]
-call fcn_000002f0 ; call 0x2f0
+call enable_sa_clock_gating ; call 0x2f0
mov dword [esp], ref_00026ee4 ; mov dword [esp], 0x26ee4
-call fcn_0001977f ; call 0x1977f
+call refcode_notify_ppi ; call 0x1977f
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -859,7 +859,7 @@ loc_00000804:
sub esp, 0xc
lea eax, [ebp - 0x20]
push eax
-call fcn_00019797 ; call 0x19797
+call refcode_get_bootmode ; call 0x19797
mov ebx, eax
call dummy_15479 ; call 0x15479
add esp, 0x10
@@ -890,7 +890,7 @@ add esp, 0x10
loc_00000855:
sub esp, 0xc
push ref_00026ed8 ; push 0x26ed8
-call fcn_0001977f ; call 0x1977f
+call refcode_notify_ppi ; call 0x1977f
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -944,7 +944,7 @@ add esp, 0x10
loc_000008f5:
sub esp, 0xc
push ref_00026ed8 ; push 0x26ed8
-call fcn_0001977f ; call 0x1977f
+call refcode_notify_ppi ; call 0x1977f
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -1024,7 +1024,7 @@ push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 0xc]
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov dword [ebp - 0x34], 0
mov edi, eax
mov eax, dword [ebx + 0x11]
@@ -1095,7 +1095,7 @@ push 0
call get_pci_dev_base ; call 0x16c9a
add eax, 0x48
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
add esp, 0x10
cmp edi, 0x40670
jne loc_00000b4a ; jne 0xb4a
@@ -2368,7 +2368,7 @@ pop edi
pop ebp
ret
-fcn_00001663:
+igd_init:
push ebp
mov ebp, esp
push edi
@@ -2396,11 +2396,11 @@ add eax, 0x48
mov dword [esp], eax
call read32 ; call 0x17e4e
mov dword [ebp - 0x54], eax
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
-call fcn_00019797 ; call 0x19797
+call refcode_get_bootmode ; call 0x19797
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -3198,13 +3198,13 @@ mov esi, eax
add esi, 0x68
lea eax, [eax + 0x48]
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov dword [esp], esi
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
and eax, 0xfffffffe
mov edi, edx
mov esi, eax
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
@@ -3463,7 +3463,7 @@ mov dword [ebp + 0xc], 0xffff0000
leave
jmp near and_or_32 ; jmp 0x18b68
-fcn_0000211b:
+train_dmi:
push ebp
mov ebp, esp
push edi
@@ -3478,10 +3478,10 @@ mov ebx, eax
lea eax, [eax + 0x48]
add ebx, 0x68
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov dword [esp], ebx
mov dword [ebp - 0x30], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
@@ -3991,7 +3991,7 @@ mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
mov ebx, dword [ebp + 0x18]
push eax
-call fcn_00019797 ; call 0x19797
+call refcode_get_bootmode ; call 0x19797
mov edi, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -4530,7 +4530,7 @@ mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov dword [ebp - 0x1c], eax
call fcn_0001c678 ; call 0x1c678
mov edx, dword [ebp - 0x24]
@@ -4655,7 +4655,7 @@ push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov dword [ebp - 0x1c], eax
call fcn_0001c678 ; call 0x1c678
mov dword [ebp - 0x20], eax
@@ -5699,7 +5699,7 @@ mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1c]
push eax
-call fcn_00019797 ; call 0x19797
+call refcode_get_bootmode ; call 0x19797
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -6128,7 +6128,7 @@ push 0
call get_pci_dev_base ; call 0x16c9a
add eax, 0x48
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov ebx, eax
and ebx, 0xfffffffe
lea eax, [ebx + 0x7400]
@@ -6268,7 +6268,7 @@ mov dword [ebp - 0x44], eax
call get_pci_dev_base ; call 0x16c9a
add eax, 0x48
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov ebx, eax
and ebx, 0xfffffffe
lea eax, [ebx + 0x7410]
@@ -6506,7 +6506,7 @@ mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
movzx ebx, bl
mov edi, eax
push eax
@@ -6777,7 +6777,7 @@ sub esp, 0x1c
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
cmp dword [ebp + 0x14], 1
mov dword [ebp - 0x20], eax
mov eax, 4
@@ -7675,7 +7675,7 @@ pop edi
pop ebp
ret
-fcn_00004b08:
+peg_init:
push ebp
mov ecx, 0x15
mov ebp, esp
@@ -7719,11 +7719,11 @@ call get_pci_dev_base ; call 0x16c9a
mov dword [ebp - 0x64], eax
lea eax, [edi + 0x48]
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov esi, eax
lea eax, [edi + 0x68]
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x38], 0
mov eax, dword [eax + 0xd]
@@ -7814,7 +7814,7 @@ mov byte [ebp - 0x28], 8
mov byte [ebp - 0x21], 4
loc_00004c82:
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov ebx, 1
mov dword [ebp - 0x58], eax
call fcn_0001c678 ; call 0x1c678
@@ -9540,7 +9540,7 @@ mov byte [ebp - 0x19], al
call get_pci_dev_base ; call 0x16c9a
add eax, 0x48
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, edi
@@ -10079,7 +10079,7 @@ push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0x10]
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov edi, eax
push eax
push 0
@@ -10088,7 +10088,7 @@ push 0
call get_pci_dev_base ; call 0x16c9a
add eax, 0x48
mov dword [esp], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
add esp, 0x10
cmp edi, 0x40660
sete byte [ebp - 0x19]
@@ -10492,7 +10492,7 @@ mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov dword [ebp - 0x1c], eax
call fcn_0001c678 ; call 0x1c678
mov dword [ebp - 0x20], eax
@@ -13041,7 +13041,7 @@ push 0xfed85000
lea eax, [ebx + 0x38010]
add ebx, 0x38004
push eax
-call fcn_00017f28 ; call 0x17f28
+call write64 ; call 0x17f28
pop eax
pop edx
push 2
@@ -13505,7 +13505,7 @@ cmp al, 1
jbe short loc_000082dd ; jbe 0x82dd
loc_000082c2:
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
cmp eax, 0x40660
je short loc_000082d9 ; je 0x82d9
cmp eax, 0x306c0
@@ -13534,7 +13534,7 @@ push edi
push esi
push ebx
sub esp, 0x41c
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov dword [ebp - 0x3ec], eax
call fcn_0001c678 ; call 0x1c678
push ebx
@@ -15175,7 +15175,7 @@ push esi
mov esi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
cmp eax, 0x40660
je short loc_0000961a ; je 0x961a
cmp eax, 0x306c0
@@ -15282,7 +15282,7 @@ mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push ebx
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov ebx, eax
call fcn_0001c678 ; call 0x1c678
cmp ebx, 0x40670
@@ -22140,7 +22140,7 @@ loc_0000dc7c:
sub esp, 0xc
lea eax, [ebp - 0x1c]
push eax
-call fcn_00019797 ; call 0x19797
+call refcode_get_bootmode ; call 0x19797
add esp, 0x10
test eax, eax
js short loc_0000dd06 ; js 0xdd06
@@ -22681,7 +22681,7 @@ add esp, 0x10
loc_0000e1f4:
sub esp, 0xc
push ref_00026f5c ; push 0x26f5c
-call fcn_0001977f ; call 0x1977f
+call refcode_notify_ppi ; call 0x1977f
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -29738,7 +29738,7 @@ loc_0001264c: ; not directly referenced
sub esp, 0xc
lea eax, [ebp - 0x20]
push eax
-call fcn_00019797 ; call 0x19797
+call refcode_get_bootmode ; call 0x19797
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -32432,7 +32432,7 @@ mov dword [ebp - 0x3c], eax
call and_or_32 ; call 0x18b68
lea eax, [ebp - 0x1c]
mov dword [esp], eax
-call fcn_00019797 ; call 0x19797
+call refcode_get_bootmode ; call 0x19797
add esp, 0x10
cmp dword [ebp - 0x1c], 0x11
je loc_0001489b ; je 0x1489b
@@ -36731,7 +36731,7 @@ mov ebp, esp
push ebx
sub esp, 0x10
push 0xce
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0x10
xor edx, edx
movzx ebx, ah
@@ -38077,7 +38077,7 @@ int3
pop ebp
ret
-fcn_000175bc:
+rdmsr:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
@@ -38085,7 +38085,7 @@ rdmsr
pop ebp
ret
-fcn_000175c6:
+wrmsr:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
@@ -38631,7 +38631,7 @@ push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
leave
ret
@@ -38644,7 +38644,7 @@ mov eax, dword [ebp + 0xc]
push edx
push eax
push dword [ebp + 8]
-call fcn_000175c6 ; call 0x175c6
+call wrmsr ; call 0x175c6
leave
ret
@@ -38668,7 +38668,7 @@ pop esi
pop ebp
jmp near fcn_0001f7b4 ; jmp 0x1f7b4
-fcn_0001790f: ; not directly referenced
+msr_or: ; not directly referenced
push ebp
mov ebp, esp
push edi
@@ -38679,7 +38679,7 @@ mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push edi
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0x10
mov dword [ebp + 8], edi
or eax, esi
@@ -38691,7 +38691,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_000175c6 ; jmp 0x175c6
+jmp near wrmsr ; jmp 0x175c6
fcn_00017943: ; not directly referenced
push ebp
@@ -38702,7 +38702,7 @@ mov eax, dword [ebp + 0xc]
push edx
push eax
push dword [ebp + 8]
-call fcn_0001790f ; call 0x1790f
+call msr_or ; call 0x1790f
leave
ret
@@ -38717,7 +38717,7 @@ mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push edi
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0x10
mov dword [ebp + 8], edi
and eax, esi
@@ -38729,7 +38729,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_000175c6 ; jmp 0x175c6
+jmp near wrmsr ; jmp 0x175c6
fcn_0001798e: ; not directly referenced
push ebp
@@ -38759,7 +38759,7 @@ push ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0x10
mov dword [ebp + 8], ebx
and eax, edi
@@ -38773,7 +38773,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_000175c6 ; jmp 0x175c6
+jmp near wrmsr ; jmp 0x175c6
fcn_000179eb: ; not directly referenced
push ebp
@@ -38797,7 +38797,7 @@ push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
@@ -38821,7 +38821,7 @@ push ecx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
pop ecx
pop ecx
push edi
@@ -38841,7 +38841,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_000175c6 ; jmp 0x175c6
+jmp near wrmsr ; jmp 0x175c6
fcn_00017a74: ; not directly referenced
push ebp
@@ -38906,7 +38906,7 @@ push ecx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
pop ecx
pop ecx
push edi
@@ -38926,7 +38926,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_000175c6 ; jmp 0x175c6
+jmp near wrmsr ; jmp 0x175c6
fcn_00017b33: ; not directly referenced
push ebp
@@ -38991,7 +38991,7 @@ push ecx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
pop ecx
pop ecx
push edi
@@ -39011,7 +39011,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_000175c6 ; jmp 0x175c6
+jmp near wrmsr ; jmp 0x175c6
fcn_00017bf2: ; not directly referenced
push ebp
@@ -39080,7 +39080,7 @@ mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
push edi
push esi
push dword [ebp - 0x24]
@@ -39100,7 +39100,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_000175c6 ; jmp 0x175c6
+jmp near wrmsr ; jmp 0x175c6
fcn_00017cc1: ; not directly referenced
push ebp
@@ -39339,7 +39339,7 @@ pop esi
pop ebp
ret
-fcn_00017ed8:
+read64:
push ebp
mov ebp, esp
push ebx
@@ -39370,7 +39370,7 @@ mov ebx, dword [ebp - 4]
leave
ret
-fcn_00017f28:
+write64:
push ebp
mov ebp, esp
push edi
@@ -40992,7 +40992,7 @@ mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push edi
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
add esp, 0x10
mov dword [ebp + 8], edi
or eax, esi
@@ -41004,7 +41004,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_00017f28 ; jmp 0x17f28
+jmp near write64 ; jmp 0x17f28
fcn_00018d02:
push ebp
@@ -41017,7 +41017,7 @@ mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push edi
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
add esp, 0x10
mov dword [ebp + 8], edi
and eax, esi
@@ -41029,7 +41029,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_00017f28 ; jmp 0x17f28
+jmp near write64 ; jmp 0x17f28
fcn_00018d36: ; not directly referenced
push ebp
@@ -41046,7 +41046,7 @@ push ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
add esp, 0x10
mov dword [ebp + 8], ebx
and eax, edi
@@ -41060,14 +41060,14 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_00017f28 ; jmp 0x17f28
+jmp near write64 ; jmp 0x17f28
fcn_00018d7c: ; not directly referenced
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
@@ -41091,7 +41091,7 @@ push ecx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
pop ecx
pop ecx
push edi
@@ -41111,7 +41111,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_00017f28 ; jmp 0x17f28
+jmp near write64 ; jmp 0x17f28
fcn_00018de7: ; not directly referenced
push ebp
@@ -41128,7 +41128,7 @@ push ecx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
pop ecx
pop ecx
push edi
@@ -41148,7 +41148,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_00017f28 ; jmp 0x17f28
+jmp near write64 ; jmp 0x17f28
fcn_00018e35: ; not directly referenced
push ebp
@@ -41165,7 +41165,7 @@ push ecx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
pop ecx
pop ecx
push edi
@@ -41185,7 +41185,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_00017f28 ; jmp 0x17f28
+jmp near write64 ; jmp 0x17f28
fcn_00018e83: ; not directly referenced
push ebp
@@ -41206,7 +41206,7 @@ mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
push edi
push esi
push dword [ebp - 0x24]
@@ -41226,7 +41226,7 @@ pop ebx
pop esi
pop edi
pop ebp
-jmp near fcn_00017f28 ; jmp 0x17f28
+jmp near write64 ; jmp 0x17f28
inb:
push ebp
@@ -41508,7 +41508,7 @@ push ebx
sub esp, 0x20
lea eax, [ebp - 0xc]
push eax
-call fcn_00019797 ; call 0x19797
+call refcode_get_bootmode ; call 0x19797
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -41550,7 +41550,7 @@ movzx eax, word [ebp + 0xc]
push eax
movzx eax, word [ebp + 8]
push eax
-call fcn_000197df ; call 0x197df
+call refcode_create_hob ; call 0x197df
add esp, 0x10
test eax, eax
jns short loc_0001919b ; jns 0x1919b
@@ -42226,7 +42226,7 @@ call dword [edx + 0x20] ; ucall
leave
ret
-fcn_0001977f:
+refcode_notify_ppi:
push ebp
mov ebp, esp
sub esp, 8
@@ -42240,7 +42240,7 @@ call dword [edx + 0x24] ; ucall
leave
ret
-fcn_00019797:
+refcode_get_bootmode:
push ebp
mov ebp, esp
sub esp, 8
@@ -42282,7 +42282,7 @@ call dword [edx + 0x30] ; ucall
leave
ret
-fcn_000197df:
+refcode_create_hob:
push ebp
mov ebp, esp
push esi
@@ -44147,7 +44147,7 @@ mov ebp, esp
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
pop ebp
-jmp near fcn_00017ed8 ; jmp 0x17ed8
+jmp near read64 ; jmp 0x17ed8
fcn_0001a8af: ; not directly referenced
push ebp
@@ -44189,7 +44189,7 @@ mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
pop ebp
-jmp near fcn_00017f28 ; jmp 0x17f28
+jmp near write64 ; jmp 0x17f28
fcn_0001a90b: ; not directly referenced
push ebp
@@ -44458,7 +44458,7 @@ cmp byte [ebp - 0x1d], 0
je short loc_0001ab50 ; je 0x1ab50
sub esp, 0xc
push esi
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp short loc_0001ab64 ; jmp 0x1ab64
@@ -44466,7 +44466,7 @@ jmp short loc_0001ab64 ; jmp 0x1ab64
loc_0001ab50: ; not directly referenced
sub esp, 0xc
push esi
-call fcn_00017ed8 ; call 0x17ed8
+call read64 ; call 0x17ed8
add esp, 0xc
push edx
push eax
@@ -44607,7 +44607,7 @@ push eax
loc_0001ac73: ; not directly referenced
push esi
-call fcn_00017f28 ; call 0x17f28
+call write64 ; call 0x17f28
loc_0001ac79: ; not directly referenced
movzx eax, byte [ebp - 0x1e]
@@ -45178,7 +45178,7 @@ loc_0001b1e1:
sub esp, 0xc
add ebx, 0x38
push ebx
-call fcn_0001977f ; call 0x1977f
+call refcode_notify_ppi ; call 0x1977f
mov ebx, eax
call dummy_15480 ; call 0x15480
add esp, 0x10
@@ -47431,7 +47431,7 @@ pop edi
pop ebp
ret
-fcn_0001c651:
+get_cpuid:
push ebp
mov ebp, esp
sub esp, 0x24
@@ -47476,7 +47476,7 @@ push edi
push esi
push ebx
sub esp, 0xc
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov esi, eax
call fcn_0001c678 ; call 0x1c678
lea edx, [eax + esi]
@@ -47622,7 +47622,7 @@ sub esp, 0xc
push 0
push 0
push 0x8b
-call fcn_000175c6 ; call 0x175c6
+call wrmsr ; call 0x175c6
mov dword [esp], 0
push 0
push 0
@@ -47631,7 +47631,7 @@ push 1
call fcn_0001ff1b ; call 0x1ff1b
add esp, 0x14
push 0x8b
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0xc
push 0x20
push edx
@@ -47653,7 +47653,7 @@ mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
@@ -47753,7 +47753,7 @@ cmp dword [ebp + 8], 2
jne short loc_0001c99b ; jne 0x1c99b
sub esp, 0xc
push 0x150
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0xc
push 8
push esi
@@ -47944,11 +47944,11 @@ add esp, 0xc
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x150
-call fcn_000175c6 ; call 0x175c6
+call wrmsr ; call 0x175c6
mov dword [esp], 2
call fcn_0001c928 ; call 0x1c928
mov dword [esp], 0x150
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
push 8
@@ -47960,7 +47960,7 @@ call CopyMem ; call 0x1713e
mov dword [esp], 0xa
call delay ; call 0x1bb03
mov dword [esp], 0x150
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0xc
push 8
push edi
@@ -48133,11 +48133,11 @@ add esp, 0xc
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x150
-call fcn_000175c6 ; call 0x175c6
+call wrmsr ; call 0x175c6
mov dword [esp], 2
call fcn_0001c928 ; call 0x1c928
mov dword [esp], 0x150
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0xc
push 8
push edi
@@ -48148,7 +48148,7 @@ call CopyMem ; call 0x1713e
mov dword [esp], 0xa
call delay ; call 0x1bb03
mov dword [esp], 0x150
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0xc
push 8
push edi
@@ -48225,7 +48225,7 @@ mov ebx, dword [ebp + 0xc]
test ebx, ebx
je loc_0001cf0f ; je 0x1cf0f
lea edi, [ebp - 0x1c]
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
lea esi, [ebp - 0x20]
call fcn_0001c678 ; call 0x1c678
push edi
@@ -48325,7 +48325,7 @@ push ebp
mov ebp, esp
sub esp, 0x14
push 0x1b
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
leave
shrd eax, edx, 8
and eax, 1
@@ -48336,7 +48336,7 @@ push ebp
mov ebp, esp
sub esp, 0x14
push 0x35
-call fcn_000175bc ; call 0x175bc
+call rdmsr ; call 0x175bc
add esp, 0x10
leave
mov edx, eax
@@ -49242,7 +49242,7 @@ mov dword [eax], 0x80000010
mov dword [eax + 8], ecx
mov dword [eax + 4], SaPolicyGuid ; mov dword [eax + 4], 0x2930c
mov byte [ecx], 0x13
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
add esp, 0x10
mov edx, dword [ebp - 0x40]
cmp eax, 0x306d0
@@ -49547,7 +49547,7 @@ mov dword [esi + 0x14], fcn_00018f97 ; mov dword [esi + 0x14], 0x18f97
mov dword [esi + 0x18], read8 ; mov dword [esi + 0x18], 0x17d8b
mov dword [esi + 0x1c], read16 ; mov dword [esi + 0x1c], 0x17dc2
mov dword [esi + 0x20], read32 ; mov dword [esi + 0x20], 0x17e4e
-mov dword [esi + 0x24], fcn_00017ed8 ; mov dword [esi + 0x24], 0x17ed8
+mov dword [esi + 0x24], read64 ; mov dword [esi + 0x24], 0x17ed8
mov dword [esi + 0x28], write8 ; mov dword [esi + 0x28], 0x17da5
mov dword [esi + 0x2c], write16 ; mov dword [esi + 0x2c], 0x17e04
mov dword [esi + 0x30], write32 ; mov dword [esi + 0x30], 0x17e8f
@@ -49579,8 +49579,8 @@ mov dword [esi + 0x90], fcn_00016bb3 ; mov dword [esi + 0x90], 0x16bb3
mov dword [esi + 0x94], fcn_00016bdc ; mov dword [esi + 0x94], 0x16bdc
mov dword [esi + 0x98], fcn_000167ad ; mov dword [esi + 0x98], 0x167ad
mov dword [esi + 0x9c], fcn_00016822 ; mov dword [esi + 0x9c], 0x16822
-mov dword [esi + 0xa0], fcn_000175bc ; mov dword [esi + 0xa0], 0x175bc
-mov dword [esi + 0xa4], fcn_000175c6 ; mov dword [esi + 0xa4], 0x175c6
+mov dword [esi + 0xa0], rdmsr ; mov dword [esi + 0xa0], 0x175bc
+mov dword [esi + 0xa4], wrmsr ; mov dword [esi + 0xa4], 0x175c6
mov dword [esi + 0xa8], fcn_00016c50 ; mov dword [esi + 0xa8], 0x16c50
mov dword [eax + 9], ebx
mov dword [eax + 0x1e], esi
@@ -50853,13 +50853,13 @@ mov byte [ebx + 0xa], 0
mov byte [ebx + 0xb], 1
mov byte [ebx + 0xc], 0
mov byte [ebx + 0xd], 1
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
cmp eax, 0x40650
jne short loc_0001eebd ; jne 0x1eebd
loc_0001ee9b:
mov byte [ebx + 0xe], 1
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
mov byte [ebx + 0x10], 0
mov byte [ebx + 0x16], 1
cmp eax, 0x306d0
@@ -50869,7 +50869,7 @@ mov byte [ebx + 0xf], al
jmp short loc_0001eec9 ; jmp 0x1eec9
loc_0001eebd:
-call fcn_0001c651 ; call 0x1c651
+call get_cpuid ; call 0x1c651
cmp eax, 0x306d0
je short loc_0001ee9b ; je 0x1ee9b