mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcConsoleLib: Fix MTRR pointers
This commit is contained in:
parent
5139719d8e
commit
3c283f662a
@ -369,8 +369,8 @@ DirectGopSetMode (
|
||||
|
||||
if (mGop.CachePolicy >= 0) {
|
||||
MtrrSetMemoryAttribute (
|
||||
This->Mode->FrameBufferBase,
|
||||
This->Mode->FrameBufferSize,
|
||||
mGop.OriginalFrameBufferBase,
|
||||
mGop.OriginalFrameBufferSize,
|
||||
mGop.CachePolicy
|
||||
);
|
||||
}
|
||||
@ -575,15 +575,15 @@ OcUseDirectGop (
|
||||
|
||||
if (CacheType >= 0) {
|
||||
Status = MtrrSetMemoryAttribute (
|
||||
Gop->Mode->FrameBufferBase,
|
||||
Gop->Mode->FrameBufferSize,
|
||||
mGop.OriginalFrameBufferBase,
|
||||
mGop.OriginalFrameBufferSize,
|
||||
CacheType
|
||||
);
|
||||
DEBUG ((
|
||||
DEBUG_INFO,
|
||||
"OCC: FB (%Lx, %Lx) MTRR (%x) - %r\n",
|
||||
(UINT64) Gop->Mode->FrameBufferBase,
|
||||
(UINT64) Gop->Mode->FrameBufferSize,
|
||||
(UINT64) mGop.OriginalFrameBufferBase,
|
||||
(UINT64) mGop.OriginalFrameBufferSize,
|
||||
CacheType,
|
||||
Status
|
||||
));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user