1 #include "defs.h"
2
3 #include "xlat/bootflags1.h"
4 #include "xlat/bootflags2.h"
5 #include "xlat/bootflags3.h"
6
SYS_FUNC(reboot)7 SYS_FUNC(reboot)
8 {
9 const unsigned int magic1 = tcp->u_arg[0];
10 const unsigned int magic2 = tcp->u_arg[1];
11 const unsigned int cmd = tcp->u_arg[2];
12
13 printflags(bootflags1, magic1, "LINUX_REBOOT_MAGIC_???");
14 tprints(", ");
15 printflags(bootflags2, magic2, "LINUX_REBOOT_MAGIC_???");
16 tprints(", ");
17 printflags(bootflags3, cmd, "LINUX_REBOOT_CMD_???");
18 if (cmd == LINUX_REBOOT_CMD_RESTART2) {
19 tprints(", ");
20 printstr(tcp, tcp->u_arg[3]);
21 }
22 return RVAL_DECODED;
23 }
24