Flush cache after every write to in memory serial
This commit is contained in:
parent
941ccaf626
commit
aa8f3cccae
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
#include <Base.h>
|
#include <Base.h>
|
||||||
#include <Library/SerialPortLib.h>
|
#include <Library/SerialPortLib.h>
|
||||||
|
#include <Library/CacheMaintenanceLib.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize the serial device hardware.
|
Initialize the serial device hardware.
|
||||||
@ -50,6 +51,7 @@ static void mem_putchar(UINT8 c) {
|
|||||||
if (offset >= size) {
|
if (offset >= size) {
|
||||||
offset = 0;
|
offset = 0;
|
||||||
}
|
}
|
||||||
|
WriteBackInvalidateDataCacheRange(base, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,3 +34,6 @@
|
|||||||
[Packages]
|
[Packages]
|
||||||
MdePkg/MdePkg.dec
|
MdePkg/MdePkg.dec
|
||||||
|
|
||||||
|
[LibraryClasses]
|
||||||
|
CacheMaintenanceLib
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user