blob: ebe3def38cdd2320621b58a5171f55b0ee3d2ab6 [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{
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +00009 printflags(bootflags1, tcp->u_arg[0], "LINUX_REBOOT_MAGIC_???");
10 tprints(", ");
11 printflags(bootflags2, tcp->u_arg[1], "LINUX_REBOOT_MAGIC_???");
12 tprints(", ");
13 printflags(bootflags3, tcp->u_arg[2], "LINUX_REBOOT_CMD_???");
Dmitry V. Levin3ed5d022014-09-10 13:46:04 +000014 if (tcp->u_arg[2] == (long) LINUX_REBOOT_CMD_RESTART2) {
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +000015 tprints(", ");
16 printstr(tcp, tcp->u_arg[3], -1);
17 }
Dmitry V. Levin307945d2015-07-17 20:27:00 +000018 return RVAL_DECODED;
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +000019}