62{
63 switch (st) {
65 return "no error";
67 return "failed to map memory";
69 return "out of memory";
71 return "bad table checksum";
73 return "invalid table signature";
75 return "invalid table length";
77 return "not found";
79 return "invalid argument";
81 return "unimplemented";
83 return "already exists";
85 return "internal error";
87 return "object type mismatch";
89 return "init level too low/high for this action";
91 return "attempting to use a dangling namespace node";
93 return "no handler found";
95 return "resource template without an end tag";
97 return "this functionality has been compiled out of this build";
99 return "timed out waiting for hardware response";
101 return "wait timed out";
103 return "the requested action has been overridden";
105 return "the requested action has been denied";
106
108 return "AML referenced an undefined object";
110 return "invalid AML name string";
112 return "object already exists";
114 return "invalid AML opcode";
116 return "incompatible AML object type";
118 return "bad AML instruction encoding";
120 return "out of bounds AML index";
122 return "AML attempted to acquire a mutex with a lower sync level";
124 return "invalid resource template encoding or type";
126 return "hanging AML while loop";
128 return "reached maximum AML call stack depth";
130 return "AML attempted to create a reference cycle";
131 default:
132 return "<invalid status>";
133 }
134}