From: Jiewen Yao <jiewen.yao@intel.com>
To: edk2-devel@lists.01.org
Cc: Liming Gao <liming.gao@intel.com>, Star Zeng <star.zeng@intel.com>
Subject: [PATCH 1/4] MdePkg/CpuLib.h: Add CacheLineFlush function.
Date: Fri, 11 Aug 2017 22:09:48 +0800 [thread overview]
Message-ID: <1502460591-14428-2-git-send-email-jiewen.yao@intel.com> (raw)
In-Reply-To: <1502460591-14428-1-git-send-email-jiewen.yao@intel.com>
This function will be used by IntelVTd driver.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
---
MdePkg/Include/Library/CpuLib.h | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/MdePkg/Include/Library/CpuLib.h b/MdePkg/Include/Library/CpuLib.h
index 100020a..1b2f7e8 100644
--- a/MdePkg/Include/Library/CpuLib.h
+++ b/MdePkg/Include/Library/CpuLib.h
@@ -7,7 +7,7 @@
PAL Calls require PEI and DXE specific mechanisms to look up PAL Entry Point.
As a result, these services could not be defined in the Base Library.
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -47,5 +47,15 @@ CpuFlushTlb (
VOID
);
+/**
+ Flushes one cache line.
+
+ Flushes one cache line. The size of cache line can be got by CPU register.
+**/
+VOID
+EFIAPI
+CacheLineFlush (
+ IN UINTN Address
+ );
#endif
--
2.7.4.windows.1
next prev parent reply other threads:[~2017-08-11 14:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-11 14:09 [PATCH 0/4] Improve IntelVTd performance Jiewen Yao
2017-08-11 14:09 ` Jiewen Yao [this message]
2017-08-11 14:09 ` [PATCH 2/4] MdePkg/BaseCpuLib: Add CacheLineFlush function Jiewen Yao
2017-08-11 14:09 ` [PATCH 3/4] IntelSiliconPkg/dsc: Add CpuLib Jiewen Yao
2017-08-11 14:09 ` [PATCH 4/4] IntelSiliconPkg/IntelVTdDxe: Improve performance Jiewen Yao
2017-08-11 14:56 ` [PATCH 0/4] Improve IntelVTd performance Yao, Jiewen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1502460591-14428-2-git-send-email-jiewen.yao@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox