Spinlock save cpu flags

This commit is contained in:
2026-03-12 22:48:34 +01:00
parent 19793e9126
commit 4760818118
50 changed files with 704 additions and 461 deletions

View File

@@ -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