kdebug.c 422 B

12345678910111213141516
  1. /* vim: tabstop=4 shiftwidth=4 noexpandtab
  2. * This file is part of ToaruOS and is released under the terms
  3. * of the NCSA / University of Illinois License - see LICENSE.md
  4. * Copyright (C) 2014-2018 K. Lange
  5. *
  6. * kdebug - Launch kernel shell
  7. */
  8. #include <syscall.h>
  9. #include <sys/wait.h>
  10. int main(int argc, char * argv[]) {
  11. syscall_system_function(7, NULL);
  12. int status;
  13. wait(&status);
  14. return WEXITSTATUS(status);
  15. }