Files
my-os-project2/kernel/hal/x86_64/uACPI/tests/test-cases/hanging-while.asl
2025-08-17 18:37:57 +02:00

25 lines
425 B
Plaintext

// Name: Infinite While loops eventually ends
// Expect: int => 1
DefinitionBlock ("", "DSDT", 2, "uTEST", "TESTTABL", 0xF0F0F0F0)
{
Name (LOOP, 0)
Method (HANG) {
LOOP = 1
While (LOOP++) { }
}
HANG()
Method (MAIN) {
Printf("Looped %o times before getting aborted", ToDecimalString(LOOP))
If (LOOP < 100) {
Return (0)
}
Return (1)
}
}