check8080: warn if we accidentally suck in stuff we don't save when switching
authorAlan Cox <alan@linux.intel.com>
Fri, 15 Feb 2019 21:40:59 +0000 (21:40 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 15 Feb 2019 21:40:59 +0000 (21:40 +0000)
Kernel/tools/check8080 [new file with mode: 0755]

diff --git a/Kernel/tools/check8080 b/Kernel/tools/check8080
new file mode 100755 (executable)
index 0000000..096919a
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+if anm $1 |egrep ".fra|block1|block2|block3|.dvi4|.mli4"
+then
+       echo "***WARNING: Kernel is using unsafe operations"
+       exit 1
+fi
+exit 0