Skip to content

Commit b74b250

Browse files
committed
Stub out spinlocks
1 parent ab4d016 commit b74b250

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

espnet/espnet.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ static bool _is_from_isr(void) {
3333
return false;
3434
}
3535
static void * _spin_lock_create(void) {
36-
printf("called: _spin_lock_create\n");
37-
return NULL;
36+
// It looks like the only thing these libraries do, is create and delete
37+
// spin locks. So creating this as a stub for now.
38+
return malloc(1);
3839
}
3940
static void _spin_lock_delete(void *lock) {
40-
printf("called: _spin_lock_delete\n");
41+
// See _spin_lock_create.
42+
free(lock);
4143
}
4244
static uint32_t _wifi_int_disable(void *wifi_int_mux) {
4345
printf("called: _wifi_int_disable\n");

0 commit comments

Comments
 (0)