| 300 | } |
| 301 | |
| 302 | GSPGPU_Event gspWaitForAnyEvent(void) |
| 303 | { |
| 304 | s32 x; |
| 305 | do |
| 306 | { |
| 307 | do |
| 308 | { |
| 309 | x = __ldrex(&gspLastEvent); |
| 310 | if (x < 0) |
| 311 | { |
| 312 | __clrex(); |
| 313 | break; |
| 314 | } |
| 315 | } while (__strex(&gspLastEvent, -1)); |
| 316 | if (x < 0) |
| 317 | syncArbitrateAddress(&gspLastEvent, ARBITRATION_WAIT_IF_LESS_THAN, 0); |
| 318 | } while (x < 0); |
| 319 | return (GSPGPU_Event)x; |
| 320 | } |
| 321 | |
| 322 | static int popInterrupt(void) |
| 323 | { |
no test coverage detected