Skip to content

Commit

Permalink
GraphicsOutputDxe/GraphicsOutput.c: Allow for framebuffer at an offse…
Browse files Browse the repository at this point in the history
…t from BAR

Signed-off-by: Michał Kopeć <[email protected]>
  • Loading branch information
mkopec authored and miczyg1 committed Jun 14, 2024
1 parent 6a6d410 commit f053a43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutput.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,9 @@ GraphicsOutputDriverBindingStart (
FrameBufferBase = Resources->AddrRangeMin;
}
if (DeviceInfo->BarIndex == MAX_UINT8) {
if (Resources->AddrRangeMin == GraphicsInfo->FrameBufferBase) {
FrameBufferBase = Resources->AddrRangeMin;
if (Resources->AddrRangeMin <= GraphicsInfo->FrameBufferBase
&& Resources->AddrRangeMin + Resources->AddrLen >= GraphicsInfo->FrameBufferBase + GraphicsInfo->FrameBufferSize ) {
FrameBufferBase = GraphicsInfo->FrameBufferBase;
break;
}
} else {
Expand Down

0 comments on commit f053a43

Please sign in to comment.