Mercurial > hg > CbC > CbC_xv6
comparison src/main.c @ 367:650fac123133
...
author | anatofuz |
---|---|
date | Fri, 03 Jul 2020 21:21:38 +0900 |
parents | 3d7e1c9a852e |
children | 287581b5d348 |
comparison
equal
deleted
inserted
replaced
366:dcf47cf23ecc | 367:650fac123133 |
---|---|
35 paging_init (INIT_KERNMAP, PHYSTOP); | 35 paging_init (INIT_KERNMAP, PHYSTOP); |
36 | 36 |
37 kmem_init (); | 37 kmem_init (); |
38 kmem_init2(P2V(INIT_KERNMAP), P2V(PHYSTOP)); | 38 kmem_init2(P2V(INIT_KERNMAP), P2V(PHYSTOP)); |
39 | 39 |
40 kernel_context = calloc(sizeof(struct Context), 1); | 40 kernel_context = calloc(sizeof(struct KernelContext), 1); |
41 initContext(kernel_context); | 41 initContext(&kernel_context->context); |
42 | 42 |
43 trap_init (); // vector table and stacks for models | 43 trap_init (); // vector table and stacks for models |
44 pic_init (P2V(VIC_BASE)); // interrupt controller | 44 pic_init (P2V(VIC_BASE)); // interrupt controller |
45 uart_enable_rx (); // interrupt for uart | 45 uart_enable_rx (); // interrupt for uart |
46 consoleinit (); // console | 46 consoleinit (); // console |