-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from LudwigOrtmann/shell_syscalls
add system calls to the shell (to implement a reboot command)
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Shell commands for system calls | ||
* | ||
* Copyright (C) 2014 Ludwig Ortmann <ludwig.ortmann@fu-berlin.de> | ||
* | ||
* This file is subject to the terms and conditions of the GNU Lesser General | ||
* Public License. See the file LICENSE in the top level directory for more | ||
* details. | ||
* | ||
* @ingroup shell_commands | ||
* @{ | ||
* @file | ||
* @brief shell commands for system calls | ||
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de> | ||
* @} | ||
*/ | ||
|
||
#include "kernel.h" | ||
|
||
void _reboot_handler(char *unused) | ||
{ | ||
(void) unused; | ||
reboot(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters