Fixes SYS_vc_entry numbering (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 23 Jun 2015 17:45:23 +0000 (10:45 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 23 Jun 2015 19:31:04 +0000 (12:31 -0700)
SYS_vc_entry was using the same number as SYS_abort_sysc.  I think I was
trying to keep vc_entry with similar calls, but didn't want to mess with
the numbers.  Clearly that was wrong, since I later used 31 again.

Incidentally, the last initializer wins for gcc, though a warning might
have been nice (not sure if there is a legitimate usage of this).
https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html

Reinstall the kernel header and rebuild userspace.  No need to rebuild the
toolchain.

kern/include/ros/bits/syscall.h

index 4eff6cd..b6a04b0 100644 (file)
 #define SYS_mlock
 #define SYS_msync
 */
-/* sys_brk removed */
+/* was SYS_brk                                         21 */
 #define SYS_shared_page_alloc          22
 #define SYS_shared_page_free           23
 #define SYS_provision                          24
 #define SYS_notify                                     25
 #define SYS_self_notify                                26
-#define SYS_vc_entry                           31
 #define SYS_halt_core                          27
 #define SYS_init_arsc                          28
 #define SYS_change_to_m                                29
@@ -45,6 +44,7 @@
 #define SYS_populate_va                                32
 #define SYS_abort_sysc_fd                      33
 #define SYS_setup_vmm                          34
+#define SYS_vc_entry                           35
 
 /* FS Syscalls */
 #define SYS_read                               100
@@ -86,6 +86,7 @@
 #define SYS_nbind                              145
 #define SYS_nmount                             146
 #define SYS_nunmount                   147
+/* was SYS_something                   148 */
 #define SYS_fd2path                            149
 
 /* Syscalls we plan to remove someday */