Store device's names and add more startup messages
This commit is contained in:
		| @@ -38,7 +38,7 @@ void print_console_logo() { | ||||
| 	print_func(&console_putc, "                          / _ \\ / _ \\/ _` | '__| \\ \\/ /\n"); | ||||
| 	print_func(&console_putc, "                         / ___ \\  __/ (_| | |  | |>  <\n"); | ||||
| 	print_func(&console_putc, "                        /_/   \\_\\___|\\__,_|_|  |_/_/\\_\\\n\n"); | ||||
| 	print_func(&console_putc, "                        Copyright (C) 2012 - Aaron Lindsay\n"); | ||||
| 	print_func(&console_putc, "                        Copyright (C) 2012 - Aaron Lindsay\n\n\n"); | ||||
| } | ||||
|  | ||||
| void video_console_init(void) { | ||||
| @@ -60,13 +60,18 @@ void video_console_init(void) { | ||||
| 		return; | ||||
|  | ||||
| 	print_console_logo(); | ||||
|  | ||||
| 	print_func(&console_putc, "Successfully initialized video console on %s.\n", fbdev->name); | ||||
| } | ||||
|  | ||||
| void serial_console_init() { | ||||
| 	struct serial_dev *sdev = serial_first_device(); | ||||
|  | ||||
| 	if (sdev) | ||||
| 		print_init(sdev->putc); | ||||
| 	if (!sdev) | ||||
| 		return; | ||||
|  | ||||
| 	print_init(sdev->putc); | ||||
| 	print("Successfully initialized serial console on %s\n", sdev->name); | ||||
| } | ||||
|  | ||||
| void serial_init(); | ||||
| @@ -100,6 +105,7 @@ int main(void) { | ||||
| 	do { | ||||
| 		lower = (char *)atags->data.mem.start; | ||||
| 		upper = lower + atags->data.mem.size - 1; | ||||
| 		print("atags: physical memory at %x-%x\n", lower, upper); | ||||
| 		declare_memory_region(lower, upper); | ||||
| 	} while (!atags_next_mem_region(&atags)); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user