51{
52 switch (st) {
54 return "no error";
56 return "failed to map memory";
58 return "out of memory";
60 return "bad table checksum";
62 return "invalid table signature";
64 return "invalid table length";
66 return "not found";
68 return "invalid argument";
70 return "unimplemented";
72 return "already exists";
74 return "internal error";
76 return "object type mismatch";
78 return "init level too low/high for this action";
80 return "attempting to use a dangling namespace node";
82 return "no handler found";
84 return "resource template without an end tag";
86 return "this functionality has been compiled out of this build";
88 return "timed out waiting for hardware response";
90 return "wait timed out";
92 return "the requested action has been overridden";
94 return "the requested action has been denied";
95
97 return "AML referenced an undefined object";
99 return "invalid AML name string";
101 return "object already exists";
103 return "invalid AML opcode";
105 return "incompatible AML object type";
107 return "bad AML instruction encoding";
109 return "out of bounds AML index";
111 return "AML attempted to acquire a mutex with a lower sync level";
113 return "invalid resource template encoding or type";
115 return "hanging AML while loop";
117 return "reached maximum AML call stack depth";
118 default:
119 return "<invalid status>";
120 }
121}