summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/VirtioSerialDxe
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2023-05-12 16:23:06 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-06-01 09:00:00 +0000
commit4e5a804222415ec7b2bec90ea0300b8a9f60f131 (patch)
treed937eef62d5dc052654bc593e488305a39ff8a5f /OvmfPkg/VirtioSerialDxe
parent9f12d6b6ecf8ffe9cd4d93fe0976fdbaf2ded4f0 (diff)
downloadedk2-4e5a804222415ec7b2bec90ea0300b8a9f60f131.tar.gz
edk2-4e5a804222415ec7b2bec90ea0300b8a9f60f131.tar.bz2
edk2-4e5a804222415ec7b2bec90ea0300b8a9f60f131.zip
OvmfPkg/VirtioSerialDxe: use TPL_NOTIFY
Apparently TPL_CALLBACK is too low, code runs into an ASSERT complaining the new TPL is lower than the old TPL. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'OvmfPkg/VirtioSerialDxe')
-rw-r--r--OvmfPkg/VirtioSerialDxe/VirtioSerialPort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/VirtioSerialDxe/VirtioSerialPort.c b/OvmfPkg/VirtioSerialDxe/VirtioSerialPort.c
index 522b25e969..e4a58deff1 100644
--- a/OvmfPkg/VirtioSerialDxe/VirtioSerialPort.c
+++ b/OvmfPkg/VirtioSerialDxe/VirtioSerialPort.c
@@ -158,7 +158,7 @@ VirtioSerialIoWrite (
VirtioSerialRingClearTx (SerialIo->Dev, PortTx (SerialIo->PortId));
- OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
+ OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
if (SerialIo->WriteOffset &&
(SerialIo->WriteOffset + *BufferSize > PORT_TX_BUFSIZE))
{
@@ -201,7 +201,7 @@ VirtioSerialIoRead (
goto NoData;
}
- OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
+ OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
if (SerialIo->WriteOffset) {
DEBUG ((DEBUG_VERBOSE, "%a:%d: WriteFlush %d\n", __func__, __LINE__, SerialIo->WriteOffset));
VirtioSerialRingSendBuffer (