blob: 2d118510df55a319abc7ccbe987e32dd25f9bc36 [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
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00007SYS_FUNC(reboot)
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +00008{
9 if (exiting(tcp))
10 return 0;
11
12 printflags(bootflags1, tcp->u_arg[0], "LINUX_REBOOT_MAGIC_???");
13 tprints(", ");
14 printflags(bootflags2, tcp->u_arg[1], "LINUX_REBOOT_MAGIC_???");
15 tprints(", ");
16 printflags(bootflags3, tcp->u_arg[2], "LINUX_REBOOT_CMD_???");
Dmitry V. Levin3ed5d022014-09-10 13:46:04 +000017 if (tcp->u_arg[2] == (long) LINUX_REBOOT_CMD_RESTART2) {
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +000018 tprints(", ");
19 printstr(tcp, tcp->u_arg[3], -1);
20 }
21 return 0;
22}