From bf46e7954689c41cccc897b8b00bcc5db5245374 Mon Sep 17 00:00:00 2001 From: Doug Gilbert Date: Mon, 22 Aug 2011 17:14:23 -0500 Subject: map virtual address to physical address in kernel Change-Id: Id18e604facd517598a18968af3dff927026ad894 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/272 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III Reviewed-by: Daniel M. Crowell --- src/include/kernel/block.H | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include/kernel/block.H') diff --git a/src/include/kernel/block.H b/src/include/kernel/block.H index 50286a3db..3745b065e 100644 --- a/src/include/kernel/block.H +++ b/src/include/kernel/block.H @@ -130,6 +130,16 @@ class Block */ void addPTE(void* i_vaddr); + /** + * @brief Locate the physical address of the given virtual address + * + * @param[in] i_vaddr virtual address + * + * @return the physical address bound to the virtual address, + * -EFAULT if not found @see errno.h + */ + uint64_t findPhysicalAddress(uint64_t i_vaddr) const; + friend class Segment; friend class BaseSegment; friend class StackSegment; -- cgit v1.2.3