forked from Bananymous/banan-os
Kernel: Remove old i386 spinlock code
This commit is contained in:
parent
1ab2722850
commit
0d92719433
|
@ -125,7 +125,6 @@ elseif("${BANAN_ARCH}" STREQUAL "i386")
|
||||||
${KERNEL_SOURCES}
|
${KERNEL_SOURCES}
|
||||||
arch/i386/boot.S
|
arch/i386/boot.S
|
||||||
arch/i386/PageTable.cpp
|
arch/i386/PageTable.cpp
|
||||||
arch/i386/SpinLock.S
|
|
||||||
arch/i386/Syscall.S
|
arch/i386/Syscall.S
|
||||||
arch/i386/Thread.S
|
arch/i386/Thread.S
|
||||||
)
|
)
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue