1 #include "defs.h" 2 3 #include "xlat/bootflags1.h" 4 #include "xlat/bootflags2.h" 5 #include "xlat/bootflags3.h" 6 7 SYS_FUNC(reboot) 8 { 9 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_???"); 14 if (tcp->u_arg[2] == (long) LINUX_REBOOT_CMD_RESTART2) { 15 tprints(", "); 16 printstr(tcp, tcp->u_arg[3], -1); 17 } 18 return RVAL_DECODED; 19 } 20