virt_to_phys.sh also works with nopat

This commit is contained in:
Ciro Santilli
2017-07-16 11:30:47 +01:00
parent 058c759ec9
commit 2eca9280e1
4 changed files with 9 additions and 8 deletions

View File

@@ -3,8 +3,10 @@ set -ex
insmod /virt_to_phys.ko
cd /sys/kernel/debug
cat lkmc_virt_to_phys
# *i = 0x12345678
addr=$(grep virt_to_phys lkmc_virt_to_phys | cut -d ' ' -f 2)
devmem2 "$addr"
devmem2 "$addr" w 0x9ABCDEF0
cat lkmc_virt_to_phys
# *i = 0x9ABCDEF0
rmmod virt_to_phys