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:
parent
ea51f45bc6
commit
41f9a71103
@ -11,11 +11,14 @@
|
|||||||
macro PDEBUGF _level*, _fmt*, _bus*, _devfn*, [_args] {
|
macro PDEBUGF _level*, _fmt*, _bus*, _devfn*, [_args] {
|
||||||
push ebx
|
push ebx
|
||||||
push ecx
|
push ecx
|
||||||
|
push edx
|
||||||
|
movzx edx, _bus
|
||||||
movzx ebx, _devfn
|
movzx ebx, _devfn
|
||||||
shr ebx, 3 ; get rid of 3 lowest bits (function code), the rest bits is device code
|
shr ebx, 3 ; get rid of 3 lowest bits (function code), the rest bits is device code
|
||||||
movzx ecx, _devfn
|
movzx ecx, _devfn
|
||||||
and ecx, 00000111b ; get only 3 lowest bits (function code)
|
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 ecx
|
||||||
pop ebx
|
pop ebx
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user