From e520b52cd58f70af9a17f330fe1ce98ce059762c Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 23 Dec 2019 01:33:26 -0500 Subject: small changes, part 1 --- src/kernel/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kernel/main.c') diff --git a/src/kernel/main.c b/src/kernel/main.c index 54b0a83..6a8630b 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -24,12 +24,14 @@ OF THIS SOFTWARE. #include "misc.h" void main(void) { + *(uint16_t *)0x0000200e = 0x0000; + *(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) + for (struct proc_info *i = PROCS, *l = PROCS + 65536; i < l; ++i) i->memory_start = 0; uint16_t pages_free = 0, pages_total = 0; -- cgit v1.2.3