spin_lock_* macro

git-svn-id: svn://kolibrios.org@3395 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2013-03-19 21:45:05 +00:00
parent 817b73c24b
commit 2bf2a6cd80

View File

@ -579,6 +579,26 @@ struct PCIDEV
bus db ? bus db ?
ends ends
; The following macro assume that we are on uniprocessor machine.
; Serious work is needed for multiprocessor machines.
macro spin_lock_irqsave spinlock
{
pushf
cli
}
macro spin_unlock_irqrestore spinlock
{
popf
}
macro spin_lock_irq spinlock
{
cli
}
macro spin_unlock_irq spinlock
{
sti
}
struct MEM_STATE struct MEM_STATE
mutex MUTEX mutex MUTEX
smallmap dd ? smallmap dd ?