summaryrefslogtreecommitdiff
path: root/src/arch/x86/acpigen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/acpigen.c')
-rw-r--r--src/arch/x86/acpigen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/x86/acpigen.c b/src/arch/x86/acpigen.c
index c370321835..d37568c92f 100644
--- a/src/arch/x86/acpigen.c
+++ b/src/arch/x86/acpigen.c
@@ -87,12 +87,15 @@ void acpigen_emit_dword(unsigned int data)
acpigen_emit_byte((data >> 24) & 0xff);
}
-void acpigen_write_package(int nr_el)
+char *acpigen_write_package(int nr_el)
{
+ char *p;
/* package op */
acpigen_emit_byte(0x12);
acpigen_write_len_f();
+ p = acpigen_get_current();
acpigen_emit_byte(nr_el);
+ return p;
}
void acpigen_write_byte(unsigned int data)