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