Changeset 0116f21 in mainline for kernel/generic/src/syscall/syscall.c


Ignore:
Timestamp:
2019-07-18T15:30:31Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
bb580548
Parents:
40043e8
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-07-18 15:26:49)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-07-18 15:30:31)
Message:

Implementing systemcall for shotdown

This commit implements a systemcall for shutdown the system.
It provides the necessary systemcall which creates a new thread
for the kernel task. The thread will then call halt(), reboot()
or cancel the pending shutdown process. The systemcall takes
three parameters: a modus (cancel, halt, reboot), a delay and
a boolean for changing into the kernel console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/syscall/syscall.c

    r40043e8 r0116f21  
    192192        [SYS_SYSINFO_GET_DATA] = (syshandler_t) sys_sysinfo_get_data,
    193193
     194        [SYS_SHUTDOWN] = (syshandler_t) sys_shutdown,
     195
    194196        /* Kernel console syscalls. */
    195197        [SYS_DEBUG_CONSOLE] = (syshandler_t) sys_debug_console,
Note: See TracChangeset for help on using the changeset viewer.