1. 24 May, 2017 10 commits
  2. 23 May, 2017 4 commits
    • Masahiro Yamada's avatar
      FVP,Juno: switch FVP and Juno to use generic TBBR OID header · 232c6b34
      Masahiro Yamada authored
      
      
      The header tbbr_oid.h contains OIDs obtained by ARM Ltd.
      so there is no good reason to use platform_oid.h
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      232c6b34
    • Masahiro Yamada's avatar
      cert: move platform_oid.h to include/tools_share for all platforms · bb41eb7a
      Masahiro Yamada authored
      
      
      Platforms aligned with TBBR are supposed to use their own OIDs, but
      defining the same macros with different OIDs does not provide any
      value (at least technically).
      
      For easier use of TBBR, this commit allows platforms to reuse the OIDs
      obtained by ARM Ltd.  This will be useful for non-ARM vendors that
      do not need their own extension fields in their certificate files.
      
      The OIDs of ARM Ltd. have been moved to include/tools_share/tbbr_oid.h
      
      Platforms can include <tbbr_oid.h> instead of <platform_oid.h> by
      defining USE_TBBR_DEFS as 1.  USE_TBBR_DEFS is 0 by default to keep the
      backward compatibility.
      
      For clarification, I inserted a blank line between headers from the
      include/ directory (#include <...>) and ones from a local directory
      (#include "..." ).
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      bb41eb7a
    • Masahiro Yamada's avatar
      fip: move headers shared between TF and fiptool to include/tools_share · 2a6c1a8f
      Masahiro Yamada authored
      
      
      Some header files need to be shared between TF and host programs.
      For fiptool, two headers are copied to the tools/fiptool directory,
      but it looks clumsy.
      
      This commit introduces a new directory, include/tools_share, which
      collects headers that should be shared between TF and host programs.
      
      This will clarify the interface exposed to host tools.  We should
      add new headers to this directory only when we really need to do so.
      
      For clarification, I inserted a blank line between headers from the
      include/ directory (#include <...>) and ones from a local directory
      (#include "..." ).
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      2a6c1a8f
    • Masahiro Yamada's avatar
      Build: fix assert_boolean implementation · be4cd40e
      Masahiro Yamada authored
      
      
      The current assert_boolean does not work with variables assigned with
      '=' flavor instead of ':='.
      
      For example,
      
       FOO = $(BAR)
       BAR := 1
      
      Here, $(value FOO) is evaluated to $(BAR), not 1.  This is not what
      we expect.  While I am here, I simplified the implementation.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      be4cd40e
  3. 22 May, 2017 4 commits
  4. 19 May, 2017 2 commits
  5. 18 May, 2017 1 commit
  6. 17 May, 2017 1 commit
  7. 16 May, 2017 6 commits
  8. 15 May, 2017 4 commits
  9. 12 May, 2017 8 commits
    • davidcunado-arm's avatar
      Merge pull request #930 from antonio-nino-diaz-arm/an/fixes-xlat-v2 · 823cc7a9
      davidcunado-arm authored
      Minor fixes to the xlat tables lib v2
      823cc7a9
    • David Cunado's avatar
      Migrate ARM platforms to use TF_MBEDTLS_KEY_ALG · 6a0b0d7f
      David Cunado authored
      
      
      A previous patch superseded the MBEDTLS_KEY_ALG. This patch updates
      the ARM platforms to use the new TF_MBEDTLS_KEY_ALG define.
      
      Change-Id: Ie0e1bc272e127e879ac58e7cfcbe268751d7688e
      Signed-off-by: default avatarDavid Cunado <david.cunado@arm.com>
      6a0b0d7f
    • David Cunado's avatar
      mbedtls: Complete namespace for TF specific macros · 0aff7ad2
      David Cunado authored
      
      
      This patch renames MBEDTLS_KEY_ALG to TF_MBEDTLS_KEY_ALG. This
      completes the migration of TF specific macros so that they do not
      have the MBEDTLS_ suffix (see arm-trusted-firmware#874).
      
      Change-Id: Iad7632477e220b0af987c4db3cf52229fb127d00
      Signed-off-by: default avatarDavid Cunado <david.cunado@arm.com>
      0aff7ad2
    • David Cunado's avatar
      mbedtls: Namespace for TF specific macros · b1883510
      David Cunado authored
      
      
      An earlier patch (arm-trusted-firmware#874) migrated MBEDTLS_ suffixed
      macros to have a TBBR_ suffix to avoid any potential clash with future
      mbedtls macros.
      
      But on reflection the TBBR_ suffix could be confusing as the macros
      are used to drive TF-specific configuration of mbedtls. As such
      this patch migrates these macros from TBBR_suffix to TF_MBEDTLS_
      suffix which more accurately conveys their use.
      
      Change-Id: Ic87642b653ceeaa03d62f724976abd5e12e867d4
      Signed-off-by: default avatarDavid Cunado <david.cunado@arm.com>
      b1883510
    • Soby Mathew's avatar
      AArch32: Rework SMC context save and restore mechanism · b6285d64
      Soby Mathew authored
      
      
      The current SMC context data structure `smc_ctx_t` and related helpers are
      optimized for case when SMC call does not result in world switch. This was
      the case for SP_MIN and BL1 cold boot flow. But the firmware update usecase
      requires world switch as a result of SMC and the current SMC context helpers
      were not helping very much in this regard. Therefore this patch does the
      following changes to improve this:
      
      1. Add monitor stack pointer, `spmon` to `smc_ctx_t`
      
      The C Runtime stack pointer in monitor mode, `sp_mon` is added to the
      SMC context, and the `smc_ctx_t` pointer is cached in `sp_mon` prior
      to exit from Monitor mode. This makes is easier to retrieve the
      context when the next SMC call happens. As a result of this change,
      the SMC context helpers no longer depend on the stack to save and
      restore the register.
      
      This aligns it with the context save and restore mechanism in AArch64.
      
      2. Add SCR in `smc_ctx_t`
      
      Adding the SCR register to `smc_ctx_t` makes it easier to manage this
      register state when switching between non secure and secure world as a
      result of an SMC call.
      
      Change-Id: I5e12a7056107c1701b457b8f7363fdbf892230bf
      Signed-off-by: default avatarSoby Mathew <soby.mathew@arm.com>
      Signed-off-by: default avatardp-arm <dimitris.papastamos@arm.com>
      b6285d64
    • dp-arm's avatar
      Hook up LLVM compiler-rt in the build system · d801fbb0
      dp-arm authored
      
      
      This patch enables compiler-rt for the AArch32 target.  The code is
      not used for AArch64 as the architecture supports the 64-bit division
      and modulo operations natively.
      
      Change-Id: I1703a92872b0bb56ac0b98c67193830683963b13
      Signed-off-by: default avatardp-arm <dimitris.papastamos@arm.com>
      d801fbb0
    • dp-arm's avatar
      Import builtins from LLVM compiler-rt project · 0e14a7fb
      dp-arm authored
      
      
      These are needed to provide division and modulo operations
      for the AArch32 target.
      
      This code is entirely unmodified.  Imported from compiler-rt
      master branch as of May 4 2017.
      
      Change-Id: I001e1809f2afd4bf8d4cc3d2296798809f607144
      Signed-off-by: default avatardp-arm <dimitris.papastamos@arm.com>
      0e14a7fb
    • Sandrine Bailleux's avatar
      Tegra: Break circular dependency in platform header files · 24c287be
      Sandrine Bailleux authored
      
      
      For SoCs T132 and T210, the header file 'platform_def.h' used to include
      'tegra_def.h' and vice versa. This patch breaks this circular dependency
      by making 'tegra_def.h' independent.
      
      Change-Id: I45a00a84e6ab8b93d5e9242a9ff65f03e9102a96
      Signed-off-by: default avatarSandrine Bailleux <sandrine.bailleux@arm.com>
      24c287be