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(). --- kernel/boot.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kernel/boot.s') diff --git a/kernel/boot.s b/kernel/boot.s index 21b248c..db846c9 100644 --- a/kernel/boot.s +++ b/kernel/boot.s @@ -7,6 +7,7 @@ extern hd_init extern kmain extern paging_init extern printk +extern serial_init extern syscall_init extern timer_init extern traps_init @@ -39,7 +40,8 @@ kboot: push .msg call printk add esp, 4 - ; initialize the disk interface + ; initialize secondary subsystems + call serial_init call hd_init ; last minute setup, then transfer to kmain call timer_init -- cgit v1.3