From 6d87016287ea76afbdf7e16fb2cf9e4fa20cc0de Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Sat, 1 Sep 2018 02:27:36 +1000 Subject: Removed the sys_puts system call in favour of calls to tty_write(). Removed the rsputs() function in favour of calls to tty_write(). Corrected a bug in the serial driver and TTY subsystem where a full buffer wouldn't be detected. This was caused by a missing set of brackets on several operations involving the modulus operator. Added the ability for the serial driver to automatically take data from the TTY device's write buffer and push it to the serial port. This can happen in one of two ways; 1) the TTY subsystem notifies the serial driver of new data by calling the write() function pointer in the tty_struct or, 2) the serial port issues an interrupt signalling that it has finished sending data prompting the driver to check the buffers for any more pending data. --- include/unistd.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index a7e4f32..cc0f766 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -10,18 +10,17 @@ typedef int32_t ssize_t; typedef int16_t pid_t; -#define __SYS_puts 0 -#define __SYS_time 1 -#define __SYS_getpid 2 -#define __SYS_getpdir 3 -#define __SYS_signal 4 -#define __SYS_alarm 5 -#define __SYS_pause 6 -#define __SYS_ctty 7 -#define __SYS_read 8 -#define __SYS_write 9 -#define __SYS_kill 10 -#define __SYS_panic 11 +#define __SYS_time 0 +#define __SYS_getpid 1 +#define __SYS_getpdir 2 +#define __SYS_signal 3 +#define __SYS_alarm 4 +#define __SYS_pause 5 +#define __SYS_ctty 6 +#define __SYS_read 7 +#define __SYS_write 8 +#define __SYS_kill 9 +#define __SYS_panic 10 #define _syscall0(type, name) \ type name(void) { \ -- cgit v1.3