hvmloader: certain methods are not supposed to have a return value

Newer iasl complains about this being violated.

Also convert a ShiftLeft(<constant>, <constant>) to a plain constant.

Reported-by: Ian Campbell <Ian.Campbell@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Jan Beulich committed 2015-01-09 17:33:11 +01:00
1 parent b1b2a3afe0
commit 64ce4209cd
1 file changed
+4 -8
+4 -8
View File
@@ -222,12 +222,9 @@ int main(int argc, char **argv)
/* Define GPE control method. */
push_block("Scope", "\\_GPE");
if (dm_version == QEMU_XEN_TRADITIONAL) {
push_block("Method", "_L02");
} else {
push_block("Method", "_E02");
}
stmt("Return", "\\_SB.PRSC()");
push_block("Method",
dm_version == QEMU_XEN_TRADITIONAL ? "_L02" : "_E02");
stmt("\\_SB.PRSC ()", NULL);
pop_block();
pop_block();
/**** Processor end ****/
@@ -374,8 +371,7 @@ int main(int argc, char **argv)
push_block("Device", "S%i", slot); {
stmt("Name", "_ADR, %#06x0000", slot);
push_block("Method", "_EJ0,1"); {
stmt("Store", "ShiftLeft(1, %#06x), B0EJ", slot);
stmt("Return", "0x0");
stmt("Store", "%#010x, B0EJ", 1 << slot);
} pop_block();
stmt("Name", "_SUN, %i", slot);
} pop_block();
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.