Kernel: Fix spinlock unlocking in x86_64

Spinlock unlock used a 64 bit write on 32 bit integer, overwriting
some random memory. This caused some really hard to find bugs
This commit is contained in:
Bananymous 2023-03-07 18:47:13 +02:00
parent df8811fc1a
commit ed18d86f08
1 changed files with 1 additions and 1 deletions

View File

@ -13,5 +13,5 @@ spinlock_lock_asm:
.global spinlock_unlock_asm
spinlock_unlock_asm:
movq $0, (%rdi)
movl $0, (%rdi)
ret