File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 2
2
#define _ASM_LKL_SYSCALLS_H
3
3
4
4
int initial_syscall_thread (void * );
5
+ void free_initial_syscall_thread (void );
5
6
long lkl_syscall (long no , long * params );
6
7
7
8
#define sys_mmap sys_ni_syscall
Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ long lkl_sys_halt(void)
138
138
lkl_ops -> sem_free (idle_sem );
139
139
lkl_ops -> sem_free (init_sem );
140
140
141
+ free_initial_syscall_thread ();
142
+
141
143
return 0 ;
142
144
}
143
145
Original file line number Diff line number Diff line change @@ -363,3 +363,9 @@ int initial_syscall_thread(void *sem)
363
363
return ret ;
364
364
}
365
365
366
+ void free_initial_syscall_thread (void )
367
+ {
368
+ /* NB: .completion is freed in lkl_sys_halt, because it is
369
+ * allocated in the LKL init routine. */
370
+ lkl_ops -> sem_free (default_syscall_thread_data .mutex );
371
+ }
You can’t perform that action at this time.
0 commit comments