diff src/main.c @ 367:650fac123133

...
author anatofuz
date Fri, 03 Jul 2020 21:21:38 +0900
parents 3d7e1c9a852e
children 287581b5d348
line wrap: on
line diff
--- a/src/main.c	Fri Jul 03 16:17:47 2020 +0900
+++ b/src/main.c	Fri Jul 03 21:21:38 2020 +0900
@@ -37,8 +37,8 @@
     kmem_init ();
     kmem_init2(P2V(INIT_KERNMAP), P2V(PHYSTOP));
 
-    kernel_context = calloc(sizeof(struct Context), 1);
-    initContext(kernel_context);
+    kernel_context = calloc(sizeof(struct KernelContext), 1);
+    initContext(&kernel_context->context);
 
     trap_init ();				// vector table and stacks for models
     pic_init (P2V(VIC_BASE));	// interrupt controller