summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel/cpu/mb.c
diff options
context:
space:
mode:
authorJohn A. Williams2011-05-24 10:57:11 +0200
committerMichal Simek2011-07-25 09:13:42 +0200
commit8904976e8ca45be3ec75acc71f5d855ef671a079 (patch)
tree9c76c35266329312ace36ab009d686d5e2cd77f8 /arch/microblaze/kernel/cpu/mb.c
parentmicroblaze: trivial: Fix typo fault (diff)
downloadkernel-qcow2-linux-8904976e8ca45be3ec75acc71f5d855ef671a079.tar.gz
kernel-qcow2-linux-8904976e8ca45be3ec75acc71f5d855ef671a079.tar.xz
kernel-qcow2-linux-8904976e8ca45be3ec75acc71f5d855ef671a079.zip
microblaze: Unprivileged stream instruction awareness
Add cpuinfo support for the new MicroBlaze option permitting userspace (unprivileged) access to the streaming instructions (FSL / AXI-stream). Emit a noisy warning at bootup if this is enabled, because bad user code can potentially lockup the CPU. Signed-off-by: John A. Williams <john.williams@petalogix.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/cpu/mb.c')
-rw-r--r--arch/microblaze/kernel/cpu/mb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/cpu/mb.c b/arch/microblaze/kernel/cpu/mb.c
index b4048af02615..0afebaebb5b5 100644
--- a/arch/microblaze/kernel/cpu/mb.c
+++ b/arch/microblaze/kernel/cpu/mb.c
@@ -97,6 +97,10 @@ static int show_cpuinfo(struct seq_file *m, void *v)
(cpuinfo.use_exc & PVR2_FPU_EXC_MASK) ? "fpu " : "",
(cpuinfo.use_exc & PVR2_USE_FSL_EXC) ? "fsl " : "");
+ count += seq_printf(m,
+ "Stream-insns:\t%sprivileged\n",
+ cpuinfo.mmu_privins ? "un" : "");
+
if (cpuinfo.use_icache)
count += seq_printf(m,
"Icache:\t\t%ukB\tline length:\t%dB\n",