#!/bin/sh

# sets up physical memory regins that non priviliged users
# may map through mstar special devices

APPID=$(id -u app)

cat << EOF > /sys/class/mpool/unpriv_ranges
-1,1,0x00000000,0xfffff000
EOF

cat << EOF > /sys/class/miomap/unpriv_ranges
-1,1,0x00000000,0xfffff000
EOF
