Add back x86_32 support #5

Merged
Bananymous merged 46 commits from x86_32 into main 2024-04-03 02:36:29 +03:00
2 changed files with 0 additions and 20 deletions
Showing only changes of commit 0d92719433 - Show all commits

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