Skip to content

Commit

Permalink
lkl: kernel: cleanup all remaining syscall semaphores
Browse files Browse the repository at this point in the history
Signed-off-by: Lucian Adrian Grijincu <lucian.grijincu@cs.pub.ro>
  • Loading branch information
luciang committed Nov 30, 2009
1 parent cc8aac4 commit e46c5ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/lkl/kernel/setup.c
Expand Up @@ -131,6 +131,8 @@ int kernel_execve(const char *filename, char *const argv[], char *const envp[])
extern void *halt_sem;

extern void free_IRQ(void);
extern void free_syscall(void);

int __init lkl_start_kernel(struct lkl_native_operations *nops, const char *fmt, ...)
{
va_list ap;
Expand All @@ -153,6 +155,7 @@ int __init lkl_start_kernel(struct lkl_native_operations *nops, const char *fmt,
lkl_nops->timer(0);


free_syscall();
free_IRQ();
/*
* We are almost dead, announce application.
Expand Down
5 changes: 5 additions & 0 deletions arch/lkl/kernel/syscalls.c
Expand Up @@ -611,3 +611,8 @@ int __init syscall_init(void)
}

late_initcall(syscall_init);

void free_syscall(void)
{
lkl_nops->sem_free(syscall_queue_hash_lock);
}

0 comments on commit e46c5ce

Please sign in to comment.