Pipes (XCC)
[akaros.git] / kern / include / ros / procinfo.h
index dff1a03..9b69de4 100644 (file)
@@ -42,7 +42,7 @@ struct pcore {
 typedef struct procinfo {
        pid_t pid;
        pid_t ppid;
-       size_t max_vcores;
+       size_t max_vcores;      /* TODO: change to a uint32_t */
        uint64_t tsc_freq;
        uint64_t timing_overhead;
        void *heap_bottom;
@@ -118,7 +118,7 @@ static inline uint32_t __get_vcoreid_from_procinfo(void)
        do {
                cmb();
                old_seq = __procinfo.coremap_seqctr;
-               kpcoreid = __ros_syscall(SYS_getpcoreid, 0, 0, 0, 0, 0, 0, NULL);
+               kpcoreid = __ros_syscall_noerrno(SYS_getpcoreid, 0, 0, 0, 0, 0, 0);
                if (!__procinfo.pcoremap[kpcoreid].valid)
                        continue;
                kvcoreid = __procinfo.pcoremap[kpcoreid].vcoreid;