Skip to content
Snippets Groups Projects
Commit bfafc9cf authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp-v2: Add docstring to MMU.virt_to_phys"

parents be228006 75b79aa7
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2013, The Linux Foundation. All rights reserved. # Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and # it under the terms of the GNU General Public License version 2 and
...@@ -43,6 +43,10 @@ class MMU(object): ...@@ -43,6 +43,10 @@ class MMU(object):
self.load_page_tables() self.load_page_tables()
def virt_to_phys(self, addr, skip_tlb=False, save_in_tlb=True): def virt_to_phys(self, addr, skip_tlb=False, save_in_tlb=True):
"""Do a virtual to physical address lookup and possibly cache the
result in the "TLB".
"""
if addr is None: if addr is None:
return None return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment