summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/bios_uv.c
diff options
context:
space:
mode:
authorRuss Anderson <rja@sgi.com>2008-11-05 22:13:44 -0600
committerH. Peter Anvin <hpa@zytor.com>2008-11-05 20:30:20 -0800
commite8929c8a6acbecbd629b8e3f2d1a2546ec4ebdfc (patch)
treeaa6d3ed8f4624a59c34be3b0c93f52bd0bc40016 /arch/x86/kernel/bios_uv.c
parent64ccf2f9a70a06ba56cd8cedfa610b4e77181587 (diff)
downloadblackbird-op-linux-e8929c8a6acbecbd629b8e3f2d1a2546ec4ebdfc.tar.gz
blackbird-op-linux-e8929c8a6acbecbd629b8e3f2d1a2546ec4ebdfc.zip
x86: uv: Add UV memory protection bios call
Add UV bios call to change memory protections. Signed-off-by: Russ Anderson <rja@sgi.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/bios_uv.c')
-rw-r--r--arch/x86/kernel/bios_uv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/bios_uv.c b/arch/x86/kernel/bios_uv.c
index 4c02b2799216..7cf6fc3d1c10 100644
--- a/arch/x86/kernel/bios_uv.c
+++ b/arch/x86/kernel/bios_uv.c
@@ -134,6 +134,14 @@ uv_bios_mq_watchlist_free(int blade, int watchlist_num)
}
EXPORT_SYMBOL_GPL(uv_bios_mq_watchlist_free);
+s64
+uv_bios_change_memprotect(u64 paddr, u64 len, enum uv_memprotect perms)
+{
+ return uv_bios_call_irqsave(UV_BIOS_MEMPROTECT, paddr, len,
+ perms, 0, 0);
+}
+EXPORT_SYMBOL_GPL(uv_bios_change_memprotect);
+
s64 uv_bios_freq_base(u64 clock_type, u64 *ticks_per_second)
{
return uv_bios_call(UV_BIOS_FREQ_BASE, clock_type,
OpenPOWER on IntegriCloud