Merge pull request #256 from grissiom/qemu-realview-vmm

Qemu realview vmm
This commit is contained in:
Bernard Xiong 2014-04-08 12:43:16 +08:00
commit f4c732ae91
2 changed files with 3 additions and 3 deletions

View File

@ -57,9 +57,6 @@ rt_hw_context_switch_to:
ldmfd sp!, {r4} @ pop new task spsr ldmfd sp!, {r4} @ pop new task spsr
msr spsr_cxsf, r4 msr spsr_cxsf, r4
bic r4, r4, #0x20 @ must be ARM mode
msr cpsr_cxsf, r4
ldmfd sp!, {r0-r12, lr, pc}^ @ pop new task r0-r12, lr & pc ldmfd sp!, {r0-r12, lr, pc}^ @ pop new task r0-r12, lr & pc
.section .bss.share.isr .section .bss.share.isr

View File

@ -249,6 +249,9 @@ int arm_gic_dist_init(rt_uint32_t index, rt_uint32_t dist_base, int irq_start)
for (i = 0; i < _gic_max_irq; i += 32) for (i = 0; i < _gic_max_irq; i += 32)
GIC_DIST_IGROUP(dist_base, i) = 0xffffffff; GIC_DIST_IGROUP(dist_base, i) = 0xffffffff;
/* Enable group0 and group1 interrupt forwarding. */
GIC_DIST_CTRL(dist_base) = 0x03;
return 0; return 0;
} }