kernel/AHCI: preserve ebx/esi/edi in ahci_irq_handler
Check kernel codestyle / Check kernel codestyle (pull_request) Successful in 18s
Test PR / Build (en_US) (pull_request) Successful in 2m12s
Test PR / Build (ru_RU) (pull_request) Successful in 2m15s
Test PR / Build (es_ES) (pull_request) Successful in 2m18s
Build system / Build (es_ES) (push) Successful in 2m20s
Build system / Build (en_US) (push) Successful in 2m23s
Build system / Build (ru_RU) (push) Successful in 2m25s
Build system / Publish Images (push) Successful in 2m23s

This commit was merged in pull request #627.
This commit is contained in:
2026-08-01 15:58:09 +05:00
parent 35f35b39e7
commit d33a03c2e4
+4 -1
View File
@@ -1721,7 +1721,8 @@ endp
; out: eax = 1 if the interrupt came from this controller, 0 otherwise
align 4
ahci_irq_handler:
mov esi, [esp + 4]
push ebx esi edi
mov esi, [esp + 12 + 4]
test esi, esi
jz .not_our
mov edx, [esi + AHCI_CTR.abar]
@@ -1786,9 +1787,11 @@ ahci_irq_handler:
@@:
pop eax
mov eax, 1
pop edi esi ebx
ret
.not_our:
xor eax, eax
pop edi esi ebx
ret