Spinlock save cpu flags
This commit is contained in:
@@ -48,7 +48,7 @@ struct boundary_tag {
|
||||
* \return 0 if the lock was acquired successfully. Anything else is
|
||||
* failure.
|
||||
*/
|
||||
extern int liballoc_lock (void);
|
||||
extern int liballoc_lock (uint64_t* flags);
|
||||
|
||||
/** This function unlocks what was previously locked by the liballoc_lock
|
||||
* function. If it disabled interrupts, it enables interrupts. If it
|
||||
@@ -56,7 +56,7 @@ extern int liballoc_lock (void);
|
||||
*
|
||||
* \return 0 if the lock was successfully released.
|
||||
*/
|
||||
extern int liballoc_unlock (void);
|
||||
extern int liballoc_unlock (uint64_t flags);
|
||||
|
||||
/** This is the hook into the local system which allocates pages. It
|
||||
* accepts an integer parameter which is the number of pages
|
||||
|
||||
Reference in New Issue
Block a user