changeset 9:3819f339c48a

systemcall
author shivanidubey
date Thu, 20 Jun 2019 14:48:46 +0900
parents 1150b46afde9
children f969335e80c1
files src/usr/user.h src/usr/usys.S
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/usr/user.h	Wed Jun 19 18:24:04 2019 +0900
+++ b/src/usr/user.h	Thu Jun 20 14:48:46 2019 +0900
@@ -22,7 +22,8 @@
 char* sbrk(int);
 int sleep(int);
 int uptime(void);
-
+int getpriority(void);
+int setpriority(int);
 // ulib.c
 int stat(char*, struct stat*);
 char* strcpy(char*, char*);
--- a/src/usr/usys.S	Wed Jun 19 18:24:04 2019 +0900
+++ b/src/usr/usys.S	Thu Jun 20 14:48:46 2019 +0900
@@ -34,3 +34,5 @@
 SYSCALL(sbrk)
 SYSCALL(sleep)
 SYSCALL(uptime)
+SYSCALL(getpriority)
+SYSCALL(setpriority)
\ No newline at end of file