Rev 512 | Rev 518 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 512 | Rev 517 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | #include <cpu.h> |
39 | #include <cpu.h> |
40 | #include <arch/asm.h> |
40 | #include <arch/asm.h> |
41 | #include <mm/page.h> |
41 | #include <mm/page.h> |
42 | #include <arch/mm/page.h> |
42 | #include <arch/mm/page.h> |
43 | #include <mm/vm.h> |
43 | #include <mm/vm.h> |
- | 44 | #include <mm/frame.h> |
|
44 | #include <print.h> |
45 | #include <print.h> |
45 | #include <memstr.h> |
46 | #include <memstr.h> |
- | 47 | #include <console/console.h> |
|
46 | 48 | ||
47 | #ifdef CONFIG_SMP |
49 | #ifdef CONFIG_SMP |
48 | #include <arch/smp/mps.h> |
50 | #include <arch/smp/mps.h> |
49 | #endif /* CONFIG_SMP */ |
51 | #endif /* CONFIG_SMP */ |
50 | 52 | ||
Line 53... | Line 55... | ||
53 | 55 | ||
54 | #ifdef CONFIG_TEST |
56 | #ifdef CONFIG_TEST |
55 | #include <test.h> |
57 | #include <test.h> |
56 | #endif /* CONFIG_TEST */ |
58 | #endif /* CONFIG_TEST */ |
57 | 59 | ||
58 | #include <mm/frame.h> |
- | |
- | 60 | ||
59 | 61 | ||
60 | void kinit(void *arg) |
62 | void kinit(void *arg) |
61 | { |
63 | { |
62 | vm_t *m; |
64 | vm_t *m; |
63 | vm_area_t *a; |
65 | vm_area_t *a; |
Line 166... | Line 168... | ||
166 | 168 | ||
167 | #ifdef CONFIG_TEST |
169 | #ifdef CONFIG_TEST |
168 | test(); |
170 | test(); |
169 | #endif /* CONFIG_TEST */ |
171 | #endif /* CONFIG_TEST */ |
170 | 172 | ||
- | 173 | if (!stdin) { |
|
171 | while (1) { |
174 | while (1) { |
172 | thread_sleep(1); |
175 | thread_sleep(1); |
173 | printf("kinit... "); |
176 | printf("kinit... "); |
- | 177 | } |
|
174 | } |
178 | } |
175 | 179 | ||
176 | } |
180 | } |