diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index bb58d1b6..2bbe5878 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -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 ) diff --git a/kernel/arch/i386/SpinLock.S b/kernel/arch/i386/SpinLock.S deleted file mode 100644 index 1b139d6a..00000000 --- a/kernel/arch/i386/SpinLock.S +++ /dev/null @@ -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