فهرست منبع

fix: after_mmu_enable之后disable ttbr0操作在某次debug时被注释掉了,特此修正回来

shaojinchun 3 سال پیش
والد
کامیت
f1e0fe5891
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      libcpu/aarch64/cortex-a/entry_point.S

+ 0 - 2
libcpu/aarch64/cortex-a/entry_point.S

@@ -142,13 +142,11 @@ __start:
     ret
 
 after_mmu_enable:
-#if 0
     mrs x0, tcr_el1          /* disable ttbr0, only using kernel space */
     orr x0, x0, #(1 << 7)
     msr tcr_el1, x0
     msr ttbr0_el1, xzr
     dsb sy
-#endif
 
     mov     x0, #1
     msr     spsel, x0