Kaynağa Gözat

修正非主cpu的启动模式不正确的问题

shaojinchun 3 yıl önce
ebeveyn
işleme
7f913066f9
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      libcpu/arm/cortex-a/start_gcc.S

+ 3 - 3
libcpu/arm/cortex-a/start_gcc.S

@@ -666,12 +666,12 @@ after_enable_mmu2:
     cps #Mode_FIQ
     cps #Mode_FIQ
     ldr sp, =irq_stack_2_limit
     ldr sp, =irq_stack_2_limit
 
 
-    cps #Mode_SVC
-    ldr sp, =svc_stack_2_limit
-
     cps #Mode_ABT
     cps #Mode_ABT
     ldr sp, =abt_stack_2_limit
     ldr sp, =abt_stack_2_limit
 
 
+    cps #Mode_SVC
+    ldr sp, =svc_stack_2_limit
+
     /* initialize the mmu table and enable mmu */
     /* initialize the mmu table and enable mmu */
 #ifndef RT_USING_USERSPACE
 #ifndef RT_USING_USERSPACE
     bl rt_hw_mmu_init
     bl rt_hw_mmu_init