Rev 814 | Rev 897 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 814 | Rev 817 | ||
---|---|---|---|
Line 94... | Line 94... | ||
94 | console_init(); |
94 | console_init(); |
95 | debugger_init(); |
95 | debugger_init(); |
96 | arc_print_memory_map(); |
96 | arc_print_memory_map(); |
97 | arc_print_devices(); |
97 | arc_print_devices(); |
98 | /* Setup usermode...*/ |
98 | /* Setup usermode...*/ |
99 | // config.init_addr = INIT_ADDRESS; |
99 | config.init_addr = INIT_ADDRESS; |
100 | // config.init_size = INIT_SIZE; |
100 | config.init_size = INIT_SIZE; |
101 | } |
101 | } |
102 | 102 | ||
103 | void arch_post_mm_init(void) |
103 | void arch_post_mm_init(void) |
104 | { |
104 | { |
105 | } |
105 | } |
Line 124... | Line 124... | ||
124 | { |
124 | { |
125 | /* EXL=1, UM=1, IE=1 */ |
125 | /* EXL=1, UM=1, IE=1 */ |
126 | cp0_status_write(cp0_status_read() | (cp0_status_exl_exception_bit | |
126 | cp0_status_write(cp0_status_read() | (cp0_status_exl_exception_bit | |
127 | cp0_status_um_bit | |
127 | cp0_status_um_bit | |
128 | cp0_status_ie_enabled_bit)); |
128 | cp0_status_ie_enabled_bit)); |
129 | - | ||
130 | cp0_epc_write(UTEXT_ADDRESS); |
129 | cp0_epc_write(UTEXT_ADDRESS); |
131 | userspace_asm(USTACK_ADDRESS+PAGE_SIZE); |
130 | userspace_asm(USTACK_ADDRESS+PAGE_SIZE); |
132 | while (1) |
131 | while (1) |
133 | ; |
132 | ; |
134 | } |
133 | } |