Removed sys_brk()
[akaros.git] / kern / include / ros / bits / syscall.h
index a2a155c..a1d8788 100644 (file)
@@ -1,9 +1,11 @@
 #ifndef ROS_INCLUDE_BITS_SYSCALL_H
 #define ROS_INCLUDE_BITS_SYSCALL_H
 
 #ifndef ROS_INCLUDE_BITS_SYSCALL_H
 #define ROS_INCLUDE_BITS_SYSCALL_H
 
-/* system call numbers.  need to #def them for use in assembly. */
+/* system call numbers.  need to #def them for use in assembly.  Removing
+ * useless ones is okay, but if we change a number, we'll need to rebuild
+ * userspace (which is why we have holes). */
 #define SYS_null                                        1
 #define SYS_null                                        1
-#define SYS_cache_buster                        2
+/* buster renumbered */
 #define SYS_cache_invalidate            3
 #define SYS_reboot                                      4
 #define SYS_cputs                                       5
 #define SYS_cache_invalidate            3
 #define SYS_reboot                                      4
 #define SYS_cputs                                       5
@@ -15,7 +17,7 @@
 #define SYS_proc_run                           11
 #define SYS_proc_destroy                       12
 #define SYS_yield                                      13
 #define SYS_proc_run                           11
 #define SYS_proc_destroy                       12
 #define SYS_yield                                      13
-#define SYS_run_binary                         14
+/* sys_run_binary removed */
 #define SYS_fork                                       15
 #define SYS_exec                                       16
 #define SYS_trywait                                    17
 #define SYS_fork                                       15
 #define SYS_exec                                       16
 #define SYS_trywait                                    17
@@ -28,7 +30,7 @@
 #define SYS_mlock
 #define SYS_msync
 */
 #define SYS_mlock
 #define SYS_msync
 */
-#define SYS_brk                                                21
+/* sys_brk removed */
 #define SYS_shared_page_alloc          22
 #define SYS_shared_page_free           23
 #define SYS_resource_req                       24
 #define SYS_shared_page_alloc          22
 #define SYS_shared_page_free           23
 #define SYS_resource_req                       24
@@ -64,6 +66,9 @@
 #define SYS_tcgetattr                  117
 #define SYS_tcsetattr                  118
 
 #define SYS_tcgetattr                  117
 #define SYS_tcsetattr                  118
 
+/* Syscalls we plan to remove someday */
+#define SYS_cache_buster        200 
+
 /* For Buster Measurement Flags */
 #define BUSTER_SHARED                  0x0001
 #define BUSTER_STRIDED                 0x0002
 /* For Buster Measurement Flags */
 #define BUSTER_SHARED                  0x0001
 #define BUSTER_STRIDED                 0x0002