1. Feb 15, 2019
  2. Feb 14, 2019
  3. Feb 12, 2019
    • Anup Patel's avatar
      Makefile: Set ABI, ISA and Code Model in top-level make · c5467fce
      Anup Patel authored
      
      
      This patch introduces following optional PLATFORM options:
      PLATFORM_RISCV_XLEN -> RISC-V register width
      PLATFORM_RISCV_ABI -> RISC-V GCC ABI
      PLATFORM_RISCV_ISA -> RISC-V GCC ISA string
      PLATFORM_RISCV_CODE_MODEL -> RISC-V GCC Code Model
      
      If the above options are not provided by platform config.mk
      or by command-line parameters then:
      1. PLATFORM_RISCV_XLEN will be determined using toolchain
      capability
      2. PLATFORM_RISCV_ABI, PLATFORM_RISCV_ISA, and
      PLATFORM_RISCV_CODE_MODEL is set to value best suited for
      generic libsbi.a
      
      As a result of these optional PLATFORM options, the
      platform-cflags-y and platform-asflags-y is further
      simplified for platform config.mk.
      
      Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
      c5467fce
    • Anup Patel's avatar
      platform: qemu: Set FW_JUMP_ADDR and FW_PAYLOAD_OFFSET as-per XLEN · 84169e2e
      Anup Patel authored
      
      
      The current 4MB aligned FW_JUMP_ADDR and FW_PAYLOAD_OFFSET breaks
      U-Boot on QEMU virt and sifive_u machines.
      
      Instead of using 4MB aligned for both 32bit and 64bit systems, we
      use different values based compiler XLEN. Another advantage of this
      approach will be that our fw_payload.bin will smaller for 64bit
      systems.
      
      Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
      84169e2e
    • Anup Patel's avatar
      platform: template: Improve comments for FW_JUMP_ADDR and FW_PAYLOAD_OFFSET · ab12d6ef
      Anup Patel authored
      
      
      Both FW_JUMP_ADDR and FW_PAYLOAD_OFFSET, should be:
      1. 4MB aligned for 32bit system
      2. 2MB aligned for 64bit system
      
      Explicitly specify the above details in config.mk comments
      for template platform.
      
      Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
      ab12d6ef
  4. Feb 08, 2019
  5. Feb 06, 2019
  6. Feb 05, 2019
  7. Jan 30, 2019
  8. Jan 29, 2019
  9. Jan 26, 2019
    • Anup Patel's avatar
      include: Add separate header for OpenSBI version · bd98d772
      Anup Patel authored
      
      
      Currently, the OpenSBI version is in top-level Makefile so
      firmware linking to OpenSBI static library have no-way to
      know OpenSBI version.
      
      This patch moves OpenSBI version from top-level Makefile to
      sbi/sbi_version.h header which provides OPENSBI_VERSION_MAJOR
      and OPENSBI_VERSION_MINOR defines.
      
      NOTE: the SBI spec (or SBI ecall interface) version is
      different. The SBI spec version is provided by functions
      sbi_ecall_version_major() and sbi_ecall_version_minor().
      
      Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
      bd98d772
  10. Jan 24, 2019