Kernel: Remove old i386 spinlock code

This commit is contained in:
Bananymous 2024-03-22 15:16:37 +02:00
parent 1ab2722850
commit 0d92719433
2 changed files with 0 additions and 20 deletions

View File

@ -125,7 +125,6 @@ elseif("${BANAN_ARCH}" STREQUAL "i386")
${KERNEL_SOURCES}
arch/i386/boot.S
arch/i386/PageTable.cpp
arch/i386/SpinLock.S
arch/i386/Syscall.S
arch/i386/Thread.S
)

View File

@ -1,19 +0,0 @@
.global spinlock_lock_asm
spinlock_lock_asm:
movl 4(%esp), %eax
lock; btsl $0, (%eax)
jnc .done
.retry:
pause
testl $1, (%eax)
jne .retry
lock; btsl $0, (%eax)
jc .retry
.done:
ret
.global spinlock_unlock_asm
spinlock_unlock_asm:
movl 4(%esp), %eax
movl $0, (%eax)
ret