From 41f9a71103fb41647552ce981d9560195355c2cd Mon Sep 17 00:00:00 2001 From: ramenu Date: Sat, 27 Apr 2024 20:10:53 -0400 Subject: [PATCH] update PDEBUGF --- drivers/nvme/macros.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/nvme/macros.inc b/drivers/nvme/macros.inc index 49728b9..43a3b1c 100644 --- a/drivers/nvme/macros.inc +++ b/drivers/nvme/macros.inc @@ -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 }