From 9400716f56057d9f2fcd7f7ad033dfcb131105a2 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 25 Jul 2018 17:18:18 +1000 Subject: Added missing prototype for puts() in stdio.h. Implemented a basic serial interface using COM0 which can be accessed with the system call sys_puts as well as the library functions rsputs() and rsprintf(). Renamed puts() in con.c to con_puts() and made the function static to avoid interference with the library function puts(). --- include/kernel/sys.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/kernel/sys.h') diff --git a/include/kernel/sys.h b/include/kernel/sys.h index b2c1b3b..2ec4490 100644 --- a/include/kernel/sys.h +++ b/include/kernel/sys.h @@ -5,6 +5,7 @@ extern int sys_time(void); extern int sys_getpid(void); extern int sys_getpdir(void); extern int sys_signal(void); +extern int sys_rsputs(void); extern int sys_dummy(void); syscall_t call_table[256] = { @@ -13,7 +14,7 @@ syscall_t call_table[256] = { [2] = &sys_getpid, [3] = &sys_getpdir, [4] = &sys_signal, - [5] = &sys_dummy, + [5] = &sys_rsputs, [6] = &sys_dummy, [7] = &sys_dummy, [8] = &sys_dummy, -- cgit v1.3