diff options
author | Iru Cai <mytbk920423@gmail.com> | 2020-12-17 20:10:38 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2020-12-17 20:10:38 +0800 |
commit | a434bcdc5370d6d2d56aff4672d17df979934b59 (patch) | |
tree | 225f85da6488877ed200c5109686d8626d6d6503 | |
parent | dfbe6b4285d497d44e027e436438cff87d05dd6c (diff) | |
download | broadwell-refcode-a434bcdc5370d6d2d56aff4672d17df979934b59.tar.xz |
rename main and printk
-rw-r--r-- | broadwell_refcode_librem.asm | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/broadwell_refcode_librem.asm b/broadwell_refcode_librem.asm index ca9d97d..9d09f9d 100644 --- a/broadwell_refcode_librem.asm +++ b/broadwell_refcode_librem.asm @@ -16,13 +16,14 @@ loc_00000000: pushad mov eax, dword [esp + 0x24] push eax -call fcn_00000012 ; call 0x12 +call bdw_refcode_main ; call 0x12 pop ecx mov dword [esp + 0x1c], eax popad ret -fcn_00000012: +;; bdw_refcode_main(bdw_pei_data *pei_data) +bdw_refcode_main: push ebp mov ebp, esp push esi @@ -37,21 +38,21 @@ test eax, eax je loc_000000c4 ; je 0xc4 sub esp, 0xc push ref_00020688 ; push 0x20688 -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e pop eax pop edx push ebx push 0 call fcn_0000e020 ; call 0xe020 mov dword [esp], ref_0002069a ; mov dword [esp], 0x2069a -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e pop ecx pop eax push ebx push 0 call fcn_0000058b ; call 0x58b mov dword [esp], ref_000206b5 ; mov dword [esp], 0x206b5 -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e add esp, 0xc push 0 push 0 @@ -79,7 +80,7 @@ push dword [eax + 4] push eax call fcn_000150af ; call 0x150af mov dword [esp], ref_000206c7 ; mov dword [esp], 0x206c7 -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e add esp, 0x10 xor eax, eax jmp short loc_000000c7 ; jmp 0xc7 @@ -34797,7 +34798,7 @@ mov ebx, dword [ebp - 4] leave ret -fcn_0001545e: +refcode_printk: push ebp mov ebp, esp sub esp, 8 @@ -36387,7 +36388,7 @@ push ebx push 0x16 push eax push ref_0002550e ; push 0x2550e -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e add esp, 0x10 xor eax, eax jmp near loc_000165b4 ; jmp 0x165b4 @@ -36409,7 +36410,7 @@ cmp dword [ebx + 0x8f6], 0 je short loc_000164b5 ; je 0x164b5 sub esp, 0xc push ref_00025532 ; push 0x25532 -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e add esp, 0x10 mov dword [ref_00029bb8], 0x11 ; mov dword [0x29bb8], 0x11 jmp short loc_000164bf ; jmp 0x164bf @@ -36440,14 +36441,14 @@ push ref_00029b38 ; push 0x29b38 push 0 call fcn_0001ae82 ; call 0x1ae82 mov dword [esp], ref_00025542 ; mov dword [esp], 0x25542 -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e pop ecx pop ebx push ref_00029b38 ; push 0x29b38 push 0 call fcn_00016cfa ; call 0x16cfa mov dword [esp], ref_00025557 ; mov dword [esp], 0x25557 -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e pop eax pop edx push ref_00029b38 ; push 0x29b38 @@ -49150,7 +49151,7 @@ push eax push 0x3d push ref_00020660 ; push 0x20660 push ref_00026822 ; push 0x26822 -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e add esp, 0x10 loc_0001d45e: ; not directly referenced @@ -49164,7 +49165,7 @@ push eax push 0x4b push ref_00020660 ; push 0x20660 push ref_00026842 ; push 0x26842 -call fcn_0001545e ; call 0x1545e +call refcode_printk ; call 0x1545e add esp, 0x10 loc_0001d480: ; not directly referenced |