forked from Bananymous/banan-os
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:
parent
df8811fc1a
commit
ed18d86f08
|
@ -13,5 +13,5 @@ spinlock_lock_asm:
|
||||||
|
|
||||||
.global spinlock_unlock_asm
|
.global spinlock_unlock_asm
|
||||||
spinlock_unlock_asm:
|
spinlock_unlock_asm:
|
||||||
movq $0, (%rdi)
|
movl $0, (%rdi)
|
||||||
ret
|
ret
|
Loading…
Reference in New Issue