mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
Use busybox devmem
This commit is contained in:
@@ -8,8 +8,8 @@ echo '1234 11e9' > /sys/bus/pci/drivers/uio_pci_generic/new_id
|
||||
insmod /irq.ko
|
||||
base="$(setpci -d 1234:11e9 BASE_ADDRESS_0)"
|
||||
# Start generating interrupt.
|
||||
/devmem3.out "0x${base}" w 0x12345678
|
||||
devmem "0x${base}" w 0x12345678
|
||||
# Stop generating interrupt.
|
||||
/devmem3.out "0x$(($base + 4))" w 0x12345678
|
||||
/devmem3.out "0x${base}" w 0x12345678
|
||||
/devmem3.out "0x$(($base + 4))" w 0x12345678
|
||||
devmem "0x$(($base + 4))" w 0x12345678
|
||||
devmem "0x${base}" w 0x12345678
|
||||
devmem "0x$(($base + 4))" w 0x12345678
|
||||
|
||||
Reference in New Issue
Block a user