From 4c2f2fb867cfe64f217a246010a2e2722514dd90 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 17 Dec 2019 00:43:52 -0500 Subject: a good deal of process --- src/kernel/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/kernel/main.c') diff --git a/src/kernel/main.c b/src/kernel/main.c index 079779c..d5f463c 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -18,8 +18,19 @@ OF THIS SOFTWARE. */ #include "vga.h" +#include "files.h" +#include "mem.h" +#include "proc.h" void main(void) { + *(uint32_t *)0x0000050c = (uint32_t)allocate_pages(16 * sizeof(struct file_handle_info), 2); + for (struct file_handle_info *i = FILE_HANDLES, *l = FILE_HANDLES + 65536; i < l; ++i) + i->first_sector = 0; + + *(uint32_t *)0x00000510 = (uint32_t)allocate_pages(16 * sizeof(struct proc_info), 2); + for (struct proc_info *i = FILE_HANDLES, *l = FILE_HANDLES + 65536; i < l; ++i) + i->memory_start = 0; + put_sz("Welcome to Portland version 0.0.8!\n"); while (1) put_sz("|\b/\b-\b\\\b"); -- cgit v1.2.3