-
-
Notifications
You must be signed in to change notification settings - Fork 69
Draft: AML: allow field in ToInteger #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hm, yeah the spec seems pretty explicit here, and none of the other open-source interpreters seem to allow this (e.g. ACPICA. Could you share the AML snippet and what machine it comes from? I wonder if we can see how e.g. Linux is parsing it? Depending on the context, it might be that we're missing some weird implicit conversion semantic elsewhere in the pipeline. Also slightly possible that the AML is just completely broken if it's in a method that doesn't ever get executed or whatever, and ACPICA would throw an error if it tried to execute it? |
USTP is a field in GNVS. It is used in an
|
I'm struggling to manually parse that AML a little - there doesn't seem to be a Admittedly I haven't had any coffee yet, but I can't see how we'd ever end up in |
My bad, I got this mixed up with my other change, |
It's the Switch value where the problem occurs.
|
This is the declaration.
|
Seen in the wild, Field is used as argument to ToInteger, even though the spec says it is not an option.