2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2025-01-03 11:25:55 +01:00

update PDEBUGF

This commit is contained in:
ramenu 2024-04-27 20:10:53 -04:00
parent ea51f45bc6
commit 41f9a71103

View File

@ -11,11 +11,14 @@
macro PDEBUGF _level*, _fmt*, _bus*, _devfn*, [_args] {
push ebx
push ecx
push edx
movzx edx, _bus
movzx ebx, _devfn
shr ebx, 3 ; get rid of 3 lowest bits (function code), the rest bits is device code
movzx ecx, _devfn
and ecx, 00000111b ; get only 3 lowest bits (function code)
DEBUGF _level, _fmt, _bus, ebx, ecx, _args
DEBUGF _level, _fmt, edx, ebx, ecx, _args
pop edx
pop ecx
pop ebx
}