x86/acpigen: Fix acpigen_write_field
The current code doesn't work for field with size > 0x3f.
Fix that by using the correct syntax, reverse engineered using iasl.
Refactor to reuse existing code.
Tested on GNU Linux 4.9 and iasl.
Signed-off-by: Patrick Rudolph <firstname.lastname@example.org>
Tested-by: build bot (Jenkins) <email@example.com>
Reviewed-by: Paul Menzel <firstname.lastname@example.org>
Reviewed-by: Stefan Reinauer <email@example.com>
Reviewed-by: Sumeet R Pawnikar <firstname.lastname@example.org>
1 file changed