aboutsummaryrefslogtreecommitdiff
path: root/core/test/run-malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/test/run-malloc.c')
-rw-r--r--core/test/run-malloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/test/run-malloc.c b/core/test/run-malloc.c
index 723cb10..4623108 100644
--- a/core/test/run-malloc.c
+++ b/core/test/run-malloc.c
@@ -69,6 +69,11 @@ void unlock(struct lock *l)
l->lock_val = 0;
}
+bool lock_held_by_me(struct lock *l)
+{
+ return l->lock_val;
+}
+
static bool heap_empty(void)
{
const struct alloc_hdr *h = region_start(&skiboot_heap);