drm/nouveau/bios: pointers beyond end of first image need special handling

Makes common the code that was previously used by the PMU table parsing,
as it appears other tables need this too.

Not much of an idea what this is all about...

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs
2016-06-22 12:41:04 +10:00
parent 4d4e9907ff
commit 2f96e8e3e0
4 changed files with 36 additions and 21 deletions

View File

@@ -7,6 +7,9 @@ struct nvkm_bios {
u32 size;
u8 *data;
u32 image0_size;
u32 imaged_addr;
u32 bmp_offset;
u32 bit_offset;