blob: 5c4752d9441307cad98bae04bad38baf824fc886 [file] [log] [blame]
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +00001#include "defs.h"
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +00002
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +00003#include "xlat/bootflags1.h"
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +00004#include "xlat/bootflags2.h"
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +00005#include "xlat/bootflags3.h"
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +00006
7int
8sys_reboot(struct tcb *tcp)
9{
10 if (exiting(tcp))
11 return 0;
12
13 printflags(bootflags1, tcp->u_arg[0], "LINUX_REBOOT_MAGIC_???");
14 tprints(", ");
15 printflags(bootflags2, tcp->u_arg[1], "LINUX_REBOOT_MAGIC_???");
16 tprints(", ");
17 printflags(bootflags3, tcp->u_arg[2], "LINUX_REBOOT_CMD_???");
Dmitry V. Levin3ed5d022014-09-10 13:46:04 +000018 if (tcp->u_arg[2] == (long) LINUX_REBOOT_CMD_RESTART2) {
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +000019 tprints(", ");
20 printstr(tcp, tcp->u_arg[3], -1);
21 }
22 return 0;
23}