diff options
author | Patrick Rudolph <siro@das-labor.org> | 2018-05-02 19:07:57 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-18 12:19:43 +0000 |
commit | 65cbbe77ac8200d391cdb423c756bc93aabb16cc (patch) | |
tree | 3961823bc7b28de33ae5d6f2fb80c98ccc3d232d /src/cpu/amd | |
parent | 892e9f6030f2ade15067ec7b51c819130072e91b (diff) |
arch/x86/acpigen: Fix corner case in _ROM generator
In case the Option ROM isn't a multiple of 4KiB the last buffer was
truncated to prevent a buffer overrun. But tests on nouveau showed
that nouveau expects a buffer that has the requested size and is zero
padded instead.
Always return a buffer with requested size and zero pad the remaining
bytes. Fixes nouveau on Lenovo W520 with Option ROM not being multiple
of 4 KiB.
Change-Id: I3f0ecc42a21945f66eb67f73e511bd516acf0fa9
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/25999
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Rikken <nico@nicorikken.eu>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Naresh Solanki <naresh.solanki@intel.com>
Diffstat (limited to 'src/cpu/amd')
0 files changed, 0 insertions, 0 deletions