X-Git-Url: http://rtime.felk.cvut.cz/gitweb/jailhouse-test.git/blobdiff_plain/e60cdafdcfada22d8c04b2d4ce28955cad0fed1d..HEAD:/buildroot-overlay/root/cell-bench.sh diff --git a/buildroot-overlay/root/cell-bench.sh b/buildroot-overlay/root/cell-bench.sh index 25f972a..5b87718 100755 --- a/buildroot-overlay/root/cell-bench.sh +++ b/buildroot-overlay/root/cell-bench.sh @@ -1,6 +1,13 @@ -echo "creating hpet-demo cell..." +echo "creating bench cell..." jailhouse cell create /jailhouse/configs/bench.cell echo "loading binary into cell..." -jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000 + +set -e; +if [ -n "$*" ]; then + jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000 -s "$*" -a 0xf0000 +else + jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000 +fi + echo "starting it..." -jailhouse cell start bench \ No newline at end of file +jailhouse cell start bench