vmmcp: begin cleanup of vmrunkernel; grow memory size.
[akaros.git] / tests / vmm / vmrunkernelmmap.c
index 27c40d7..69cfcb1 100644 (file)
@@ -51,13 +51,13 @@ int main(int argc, char **argv)
        int i, amt;
        int nr_gpcs = 1;
        uint64_t entry;
-       int fd = open("#c/sysctl", O_RDWR), ret;
+       int fd = open("#cons/sysctl", O_RDWR), ret;
        int kfd = -1;
        bool smallkernel = false;
        void * x;
        static char cmd[512];
        if (fd < 0) {
-               perror("#c/sysctl");
+               perror("#cons/sysctl");
                exit(1);
        }
        argc--,argv++;
@@ -82,7 +82,7 @@ int main(int argc, char **argv)
 
                pthread_can_vcore_request(FALSE);       /* 2LS won't manage vcores */
                pthread_need_tls(FALSE);
-               pthread_lib_init();                                     /* gives us one vcore */
+               pthread_mcp_init();                                     /* gives us one vcore */
                vcore_request(nr_threads - 1);          /* ghetto incremental interface */
                for (int i = 0; i < nr_threads; i++) {
                        x = __procinfo.vcoremap;