• How Can I jump from EL1 to EL0 in bare metal environment

    Awax
    Awax

    Hello,

    I am working with a port of FreeRTOS on Arm64 soc , which is running at EL1, my goal is to perform a function call that will execute in EL0,

    I have come to understand that the only way for the EL switch is to set the correct M bits of the spsr_el1…

    • Answered
    • 2 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • Permission fault, level 2 on MMU enable

    jcal93
    jcal93

    Hi ARM folks, hoping someone can show me where I'm going wrong programming the MMU. The ESR_EL1 reports that it is a Permission fault, level 2. Here's what I'm trying to accomplish:

    4GiB space, 4kiB granule flat identity mapped, divided like…

    • Answered
    • 4 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • How to do from Secure(EL3) to Non-secure Exception level transition in ARMV8-A ?

    Mr_Sanjay
    Mr_Sanjay

    Hi all i trying do transition from EL3 to EL2 exception ,but after ERET of EL3 mode it change the mode to EL2 , but as soon as when it will execute first instruction of EL2 , then It goes to Exception ...

    This is happen for every secure to non secure transition…

    • 5 months ago
    • Processors
    • Cortex-A / A-Profile forum
  • What are the necessary preconditions to load a guest into EL1 from EL2?

    Branden Sherrell
    Branden Sherrell

    I have successfully moved from EL3 to EL2. After doing some initialization I am trying to move from EL2 into EL1 with a very simple guest image. My process looks like:

    • Map EL1 memory into EL2
    • Copy EL1 image to RAM
    • Initialize sctlr_el1 = 0x30d00800
      …
      • Answered
      • 8 months ago
      • Processors
      • Cortex-A / A-Profile forum
    • When are A32 state and A64 state determined?

      H.K Shin
      H.K Shin

      hi, expert

      i study ArmV8 architecture.

        On taking an exception to a higher Exception level, the Execution state either:

          • Remains unchanged.

          • Changes from AArch32 state to AArch64 state.

        i konw that…

      • Answered
      • over 6 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • In aarch32 state, what is the mechanism to switch to aarch64 in software?

      cray
      cray

      Dear sirs,

      I'm reading arm v8a specification. I found that when arm is in aarch32 state, only a few exceptions can switch to aarch64 depending on the configuration in the registers. the exceptions are as follows.

      abort, physical async abort, physical…

      • Answered
      • over 4 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • How to deice debug target exception level of watchpoint on ARMv8 architecture

      Myoungjae Kim
      Myoungjae Kim

      Hello, everyone

      I'm new to this community.

      I'd like to ask many questions and want to help someone.

      Now I have some difficulties in understanding aarch64's watchpoint exception handling scheme.

      I found I can decide which exception level whachpoint…

      • Answered
      • over 4 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • how to return from exception generated by SMC instruction

      rajtx
      rajtx

      Hi,

      I am experimenting execution level switching on A53. I go from EL3->El2, then call SMC instruction to return to EL3. As soon as SMC instruction is executed, the processor enters EL3 mode and an exception is generated.

      I have written an exception…

      • Answered
      • over 3 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • how to understand ARMv8 exception level1 secure/non-secure MMU?

      yan.wy
      yan.wy

      Hi Experts,

           ARMv8 MMU TTBRn_ELx registers are banked by exception level.

           In "DDI0487A_b_armv8_arm.pdf" page 1640, the controlling register of secure EL1&0 stage1 is TTBR0_EL1

           and Non-secure…

      • Answered
      • over 5 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • ARM v8 Arch SCTLR bit field meaning

      박주병
      박주병

      Hi, I'm reading SCTLR bit fields and have 3 questions.


      1. In these bit fields (AFE, TRE, UWXN, WXN), there are comments like 'The AFE bit is permitted to be cached in a TLB.'

      I can't figure out what the meaning of 'permitted to be cached in…

      • Answered
      • over 5 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • How to trap Guest data aborts

      armdev
      armdev

      Hi,

      I am trying to understand if Guest OS data abort happens due to accessing some memory (e.g GIC distributor space) then is there any way I can route it to EL2 mode ?

      I looked into HCR_EL2 register bits and tried setting AMO bit but it doesn't help. I…

      • Answered
      • over 4 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • Virtual Interrupts and usage in ARM V8

      techguyz
      techguyz

      Hi Experts,

      What is the practical usage of the ARM v8 virtual interrupts ?

      How it helps in the performance of functionality ?

      • Answered
      • over 4 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • EL1 behavior when MMU is off

      armdev
      armdev

      Hi,

      I am facing issues with EL1 Guest OS.  I have enabled EL2 stage 2 page tables and set up all the virtualization registers {HCR_EL2, VTCR_EL2 and VTTBR_EL2 etc.}

      I am mapping my Guest OS memory to stage 2 tables but as I try to do "eret" from EL2…

      • Answered
      • over 4 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • System Error Interrupts in ARM V8

      techguyz
      techguyz

      Hi Experts,

      What is the use case of the system error interrupts in ARM V8 and when it will be invoked ? Does it common to all the guest OS running in EL1 ?

      Is it the physical input pin change like IRQs or instruction execution like WFE ?

      Regards,

      Techguy…

      • Answered
      • over 4 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • ELn configuration in ARMV8

      techguyz
      techguyz

      Hi Experts,

      Does the EL3 and EL2 usage is the purely implementation specific or even though EL3 is implemented is it possible to disable EL3 and EL2 in software ?

      Regards,

      Techguyz

      • Answered
      • over 4 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • Reason Behind EL2 in non-secured state ARMv8

      techguyz
      techguyz

      Hi Experts,

      What is the reason behind allowing EL2 only in non-secured state in ARMv8 ?

      Regards,

      Techguyz

      • Answered
      • over 4 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • Disable data prefetching in a Cortex-A53 running Android

      DNovo
      DNovo

      Dear Experts,

      I would like to disable the data prefetching engines of the L1 and L2 caches on a MediaTek-X20 board which includes a quad Cortex-A53 cluster and runs Android.

      I have tried to include in the Linux kernel code (at kernel/init/main.c) a call…

      • Answered
      • over 1 year ago
      • Processors
      • Cortex-A / A-Profile forum
    • GICv3 Group0 secure interrupts routed to monitor when running in S-EL1

      odeprez
      odeprez

      Hi,

      In a GICv3 based system, is it possible to have the following configuration:

      While running NS-EL1/EL0:

      -NS Group1 interrupts triggered as IRQ to NS-EL1

      -Secure Grp1 interrupts routed as FIQ to EL3

      -Secure Grp0 interrupts routed as FIQ to EL3

      This…

      • Answered
      • over 1 year ago
      • Processors
      • Cortex-A / A-Profile forum
    • In Arm v7 mmu, stage2 translation cannot use short descriptors. WHY?

      Tanya_2016
      Tanya_2016

      ARM V7 document states: "In ARMv7-A short descriptors only be used at EL0 and EL1 stage 1 translations. They cannot, therefore, be used by hypervisors or Secure monitor code."

      Why stage2/hypervisors/secure monitor cannot use short descriptors…

      • Answered
      • over 1 year ago
      • Processors
      • Cortex-A / A-Profile forum
    • aarch64 Exception Level Sw itch from EL1 to EL0

      michaelyuanfeng
      michaelyuanfeng

      Hi Expert,

      I am working on a simple kernel and test it on Qemu which supports RasPi3. During the boot level. Ras Pi goes to EL3 level, and I set spsr_el3 to 1 and elr_el3 to kernel_main and then use eret to enter EL1 mode. My problem is I create a kernel…

      • Answered
      • over 1 year ago
      • Processors
      • Cortex-A / A-Profile forum
    • ARMv8 Secure EL1 problem

      Steven Meng
      Steven Meng

      Hi, arm experts,

      We want to use ARCH32 mode in secure EL1, I see some descriptions in ARMv8 Arch Reference Manual about Secure EL1 ARCH32 mode as follows:

      One is the VBAR(secure), it is mapped to  VBAR_EL3, the other is SCTLR (secure), it is mapped to …

      • Answered
      • over 5 years ago
      • Processors
      • Cortex-A / A-Profile forum
    • View related content throughout Processors
    • More
    • Cancel