diff options
| author | Jake Mannens <jake72360@gmail.com> | 2018-09-01 02:27:36 +1000 |
|---|---|---|
| committer | Jake Mannens <jake72360@gmail.com> | 2018-09-01 02:27:36 +1000 |
| commit | 6d87016287ea76afbdf7e16fb2cf9e4fa20cc0de (patch) | |
| tree | 9c2ed07925bc89ff3da3d275a6d29d80bb91d955 /include/unistd.h | |
| parent | 307eaac66d378c1f6150519123ec1204277464d9 (diff) | |
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.
Diffstat (limited to 'include/unistd.h')
| -rw-r--r-- | include/unistd.h | 23 |
1 files changed, 11 insertions, 12 deletions
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) { \ |
