Mercurial > hg > CbC > CbC_xv6
diff src/syscall.c @ 29:a672d603ccb2
fix
author | mir3636 |
---|---|
date | Fri, 18 Jan 2019 10:04:37 +0900 |
parents | 36bd61f5c847 |
children | 6a7ab1d7001c |
line wrap: on
line diff
--- a/src/syscall.c Fri Jan 18 09:40:22 2019 +0900 +++ b/src/syscall.c Fri Jan 18 10:04:37 2019 +0900 @@ -115,6 +115,8 @@ extern int sys_write(void); extern int sys_uptime(void); +extern __code cbc_read(__code(*)(int)); + static int (*syscalls[])(void) = { [SYS_fork] =sys_fork, [SYS_exit] =sys_exit, @@ -139,7 +141,7 @@ [SYS_close] =sys_close, }; -static __code (*cbccodes[])(void) = { +static __code (*cbccodes[])(__code (*)(int)) = { [SYS_cbc_read] = cbc_read, };