Skip to content

Commit 80caea0

Browse files
committed
Add ASL test for externally-defined objects
This doesn't actually appear to emit externals, assuming we're decoding correctly. I think the compiler is actually manipulating this into a scope definition, and then assuming the object is correctly loaded. Fine.
1 parent 1adb4e0 commit 80caea0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/external.asl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
DefinitionBlock("external.aml", "DSDT", 1, "RSACPI", "EXTRL", 1) {
2+
Scope(_SB) {
3+
External(FOO, MethodObj, IntObj, {IntObj})
4+
}
5+
6+
Name(X, Zero)
7+
Method(BAR) {
8+
Store(\_SB.FOO(4), X)
9+
}
10+
}

tests/power_res.asl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ DefinitionBlock("power_res.aml", "DSDT", 1, "RSACPI", "PWRRES", 1) {
1414
}
1515
}
1616
}
17-

0 commit comments

Comments
 (0)