| 199 | #define INVALID_HANDLE_VALUE ((void *)(-1)) |
| 200 | |
| 201 | static inline void e9panic(void) |
| 202 | { |
| 203 | asm volatile ( |
| 204 | "mov $0x7, %ecx\n" // FAST_FAIL_FATAL_APP_EXIT |
| 205 | "int $0x29" // __fast_fail |
| 206 | ); |
| 207 | while (true) |
| 208 | asm volatile ("ud2"); |
| 209 | __builtin_unreachable(); |
| 210 | } |
| 211 | |
| 212 | /* |
| 213 | * Write an error message and exit. |