Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. May 30, 2023
    • Boyan Karatotev's avatar
      refactor(cpus): convert print_errata_status to C · dd9fae1c
      Boyan Karatotev authored
      
      The function is called in a fully initialised C environment and calls
      into other C functions. The Aarch differences are minimal and are hidden
      by the pre-existing headers. Converting it results into cleaner code
      that is the same across both Aarch64 and Aarch32.
      
      To avoid having to do very ugly pointer arithmetic, define a C struct
      for the cpu_ops for both Aarch64 and Aarch32.
      
      Signed-off-by: default avatarBoyan Karatotev <boyan.karatotev@arm.com>
      Change-Id: Idc07c4064e03143c88a4a0e2d10ceda70ba19a50
      dd9fae1c
    • Boyan Karatotev's avatar
      refactor(cpus): rename errata_report.h to errata.h · 6bb96fa6
      Boyan Karatotev authored
      
      The ERRATA_XXX macros, used in cpu_helpers.S, are necessary for the
      check_errata_xxx family of functions. The CPU_REV should be used in the
      cpu files but for whatever reason the values have been hard-coded so far
      (at the cost of readability). It's evident this file is not strictly for
      status reporting.
      
      The new purpose of this file is to make it a one-stop-shop for all
      things errata.
      
      Signed-off-by: default avatarBoyan Karatotev <boyan.karatotev@arm.com>
      Change-Id: I1ce22dd36df5aa0bcfc5f2772251f91af8703dfb
      6bb96fa6
    • Boyan Karatotev's avatar
      refactor(cpus): move cpu_ops field defines to a header · 007433d8
      Boyan Karatotev authored
      
      The cpu_macros.S file is loaded with lots of definitions for the cpu_ops
      structure. However, since they are defined as .equ directives they are
      inaccessible for C code. Convert them to #defines, put them into order,
      refactor them for readability, and extract them to a separate file to
      make this possible.
      
      This has the benefit of removing some Aarch differences and a lot of
      duplicate code.
      
      Signed-off-by: default avatarBoyan Karatotev <boyan.karatotev@arm.com>
      Change-Id: I72861794b6c9131285a9297d5918822ed718b228
      007433d8
  2. May 26, 2023
  3. May 25, 2023
  4. May 24, 2023
  5. May 23, 2023
  6. May 22, 2023