X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=guest%2Flinux%2Fhvm-ros%2Fv3_hvm_ros_user.c;h=345f8cb719d61442e2fb4933a9e40a6c6a1c0064;hb=d13fa71cb7a372c39ea92aaa69d74d63d9e0ed8e;hp=f292626d73f632d71bc5c9772ed63f2bc1397b16;hpb=495d40c7d02054399e118be6a10b0096c938d232;p=palacios.git diff --git a/guest/linux/hvm-ros/v3_hvm_ros_user.c b/guest/linux/hvm-ros/v3_hvm_ros_user.c index f292626..345f8cb 100644 --- a/guest/linux/hvm-ros/v3_hvm_ros_user.c +++ b/guest/linux/hvm-ros/v3_hvm_ros_user.c @@ -240,6 +240,61 @@ static void wait_for_completion() } +int v3_hvm_ros_install_hrt_image(void *image, uint64_t size) +{ + unsigned long long rc, num, a1=0, a2=0, a3=0, a4=0, a5=0, a6=0, a7=0, a8=0; + unsigned long long i; + volatile long long sum=0; + + num = 0xf00d; + a1 = 0x8; // install image + a2 = (unsigned long long) image; + a3 = size; + + // touch the whoel image to make it has ptes + for (i=0;i