summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
diff options
context:
space:
mode:
authorBenji Dial <benji3.141@gmail.com>2019-12-17 00:43:52 -0500
committerBenji Dial <benji3.141@gmail.com>2019-12-17 00:43:52 -0500
commit4c2f2fb867cfe64f217a246010a2e2722514dd90 (patch)
treee36b4baa5e48b7e7d3f3bafba6d0ef7bb236f024 /src/kernel/main.c
parentcdc7b2ae532fd3a93e13784812f7501f2fd5c07a (diff)
downloadportland-os-4c2f2fb867cfe64f217a246010a2e2722514dd90.tar.gz
a good deal of process
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r--src/kernel/main.c11
1 files changed, 11 insertions, 0 deletions
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");