Rev 319 | Rev 326 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 319 | Rev 324 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | #include <arch/exception.h> |
31 | #include <arch/exception.h> |
32 | #include <arch/asm/regname.h> |
32 | #include <arch/asm/regname.h> |
33 | #include <arch/asm.h> |
33 | #include <arch/asm.h> |
34 | #include <mm/vm.h> |
34 | #include <mm/vm.h> |
35 | #include <userspace.h> |
35 | #include <userspace.h> |
- | 36 | #include <arch/console.h> |
|
36 | 37 | ||
37 | void arch_pre_mm_init(void) |
38 | void arch_pre_mm_init(void) |
38 | { |
39 | { |
39 | /* |
40 | /* |
40 | * Switch to BEV normal level so that exception vectors point to the kernel. |
41 | * Switch to BEV normal level so that exception vectors point to the kernel. |
Line 48... | Line 49... | ||
48 | cp0_status_write(cp0_status_read() | (1<<cp0_status_im7_shift)); |
49 | cp0_status_write(cp0_status_read() | (1<<cp0_status_im7_shift)); |
49 | 50 | ||
50 | /* |
51 | /* |
51 | * Start hardware clock. |
52 | * Start hardware clock. |
52 | */ |
53 | */ |
53 | cp0_compare_write(cp0_compare_value); |
54 | cp0_compare_write(cp0_compare_value + cp0_count_read()); |
- | 55 | ||
54 | cp0_count_write(0); |
56 | console_init(); |
55 | } |
57 | } |
56 | 58 | ||
57 | void arch_post_mm_init(void) |
59 | void arch_post_mm_init(void) |
58 | { |
60 | { |
59 | } |
61 | } |