From: ritesh.harjani@gmail.com (ritesh.harjani at gmail.com)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] arm64: TLB maintainance: Implement flush_kern_tlb_page
Date: Mon, 19 May 2014 16:04:25 +0530 [thread overview]
Message-ID: <1400495665-48279-2-git-send-email-ritesh.harjani@gmail.com> (raw)
In-Reply-To: <1400495665-48279-1-git-send-email-ritesh.harjani@gmail.com>
From: Ritesh Harjani <ritesh.harjani@gmail.com>
Implement flush_kern_tlb_page mentioned in the header
comment of arch/arm64/include/asm/tlbflush.h
Signed-off-by: Ritesh Harjani <ritesh.harjani@gmail.com>
---
arch/arm64/include/asm/tlbflush.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h
index 8b48203..92d0588 100644
--- a/arch/arm64/include/asm/tlbflush.h
+++ b/arch/arm64/include/asm/tlbflush.h
@@ -98,6 +98,16 @@ static inline void flush_tlb_page(struct vm_area_struct *vma,
dsb();
}
+static inline void flush_kern_tlb_page(unsigned long kaddr)
+{
+ unsigned long addr = kaddr >> 12;
+
+ dsb();
+ asm("tlbi vae1is, %0" : : "r" (addr));
+ dsb();
+ isb();
+}
+
/*
* Convert calls to our calling convention.
*/
--
1.8.1.3
next prev parent reply other threads:[~2014-05-19 10:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 10:34 [PATCH 0/1] Implement flush_kern_tlb_page ritesh.harjani at gmail.com
2014-05-19 10:34 ` ritesh.harjani at gmail.com [this message]
2014-05-19 10:46 ` [PATCH 1/1] arm64: TLB maintainance: " Catalin Marinas
2014-05-19 10:54 ` Ritesh Harjani
2014-05-19 11:01 ` Catalin Marinas
2014-05-19 11:07 ` Ritesh Harjani
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-all 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=1400495665-48279-2-git-send-email-ritesh.harjani@gmail.com \
--to=ritesh.harjani@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).