X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=guest%2Flinux%2Fhvm-ros%2Fv3_hvm_ros_user.c;h=c703ec172128b84f4c3e5e0c2b56462fc9502474;hb=4e43946f01f687361197dc9571b7df02ae20de30;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..c703ec1 100644 --- a/guest/linux/hvm-ros/v3_hvm_ros_user.c +++ b/guest/linux/hvm-ros/v3_hvm_ros_user.c @@ -9,6 +9,7 @@ #include #include +#include #include "v3_hvm_ros_user.h" @@ -240,6 +241,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