Fix implicit declaration in procinfo.h (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 11 Mar 2016 15:06:59 +0000 (10:06 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 11 Mar 2016 20:59:59 +0000 (15:59 -0500)
The user-specific part of procinfo has a helper function that makes a
syscall.  That was implying __ros_syscall_errno() existed.  Ideally, we
wouldn't do that, but doing otherwise causes include loops.

Alternatively, we could just move or remove the functions.  Considering
they are for debugging, just externing in the function seems fine.

Reinstall your kernel headers.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ros/procinfo.h

index 26a8363..611626c 100644 (file)
@@ -93,6 +93,9 @@ static inline uint32_t __get_vcoreid_from_procinfo(void)
         * there is a 'memory barrier' between the IPI write and the seqctr write.
         * I think this is true. */
        uint32_t kpcoreid, kvcoreid;
+       extern long __ros_syscall_noerrno(unsigned int _num, long _a0, long _a1,
+                                         long _a2, long _a3, long _a4, long _a5);
+
        seq_ctr_t old_seq;
        do {
                cmb();