1. 03 Jul, 2016 1 commit
  2. 18 Jun, 2016 1 commit
    • Jeffrey Lee's avatar
      Fix SetMode macro · 833b0b02
      Jeffrey Lee authored
        hdr/CPU/Generic32 - Copy-paste error led to wrong variable name in a conditional block
        Tested on Raspberry Pi, Iyonix
      Version 2.66. Tagged as 'HdrSrc-2_66'
  3. 12 Jun, 2016 1 commit
    • Jeffrey Lee's avatar
      Add new PSR manipulation macros, optimised for 32bit machines · 71306206
      Jeffrey Lee authored
        Many of our existing PSR manipulation macros (specifically, ones used for changing mode or controlling interrupts) are based around the code sequences you'd typically use on a 26bit system. Although this has worked well in terms of producing a 32bit version of the OS, it's also left us with macros that can be sub-optimal for 32bit machines, or are inconvenient to use due to the potential of corrupting other PSR flags
        This change adds a new set of macros which are designed and optimised for 32bit-only targets, but can still fall back to 26/32bit neutral or 26bit-only configurations
        - Add the new macros (SEI, CLI, SetModeSEI, SetModeCLI & variants).
        - Improve existing SetMode macro to add 26bit compatibility, and to add an extra optimisation for pre-ARMv6 (emit single MSR if IRQ state is known)
        - Improve SCPSR to allow the source mode to be any 32bit mode
        - Fix conditional 26bit/32bit neutral SCPSR - the 32bit check TEQ corrupts NZCV so we can't do conditional execution on $cond after it (and we've already branched on the opposite condition anyway)
        - Fix 26bit/32bit neutral SCPSR to preserve NZCV when following the MSR code path
        - Make CLRPSR and SETPSR just call through to SCPSR - in terms of output the first two have no advantages over SCPSR
        - Update WritePSRc documentation to reflect that it can now be used in any (non-USR) source mode
        - Update WritePSRc documentation to match Generic32
        Tested on Raspberry Pi
        Output of new macros manually checked for various machine types (RPi, Tungsten, All, 26)
      Version 2.65. Tagged as 'HdrSrc-2_65'
  4. 05 Jun, 2016 1 commit
  5. 28 May, 2016 1 commit
    • Jeffrey Lee's avatar
      Add new "26" machine type. Simplify ARM2 support. · 7d0f8d91
      Jeffrey Lee authored
        hdr/Machine/26, hdr/Machine/Machine - Add new "26" machine type, which targets all 26 bit machines/OS versions (running only in 26 bit mode)
        hdr/CPU/Arch - Use ELIF to avoid bracket spam. Remove duplicate CortexA7 case.
        hdr/CPU/Generic26 - Add NOPs to PSR manipulation macros in order to make them ARM2-safe (Generic32 macros are already structured to have suitable NOPs when generating 32bit-neutral code, so it makes sense for Generic26 to take care of ARM2 as well). This removes the need for components which use these macros to insert any manual NOPs, whether for the StrongARM MSR bug or the ARM2 TEQP bug.
        hdr/CPU/Generic32 - Flag the StrongARM MSR NOP diagnostic message as a warning, so the line number can be included in the output, so developers can more easily investigate the issue.
        Tested with PlingSystem build
      Version 2.63. Tagged as 'HdrSrc-2_63'
  6. 09 May, 2016 1 commit
    • Jeffrey Lee's avatar
      Revert change from HdrSrc 2.61 · 03e4d645
      Jeffrey Lee authored
        hdr/Macros - Remove GET of Hdr:CPU.Arch that was added in HdrSrc 2.61. Closer inspection of the OS sources suggest that only a handful of files were affected by the DivRem breakage, so to avoid HdrSrc turning into a tangled mess of headers that all include each other it's been decided that it's better to stick with the status quo and require users of Hdr:Macros to include Hdr:CPU.Arch as and when necessary (99% of the time Hdr:System will have already pulled it in).
        Tested on Raspberry Pi
      Version 2.62. Tagged as 'HdrSrc-2_62'
  7. 08 May, 2016 2 commits
    • Jeffrey Lee's avatar
      GET a header dependency · 3074d45c
      Jeffrey Lee authored
        hdr/Macros - Several macros now depend on Hdr:CPU.Arch, and it's reasonable to assume more architecture-specific optimisations will be made in future, so make sure we GET that header if necessary
        Tested on Raspberry Pi
        Fixes issues building components that GET Hdr:Macros but not Hdr:CPU.Arch, e.g. DivRem usage in several HALs
      Version 2.61. Tagged as 'HdrSrc-2_61'
    • Jeffrey Lee's avatar
      Optimise DivRem and PSR manipulation macros · bd0ce26f
      Jeffrey Lee authored
        hdr/Macros - DivRem is now able to use UDIV when building for architectures that support it. A "norem" option is also available, to allow the remainder calculation to be skipped if it's not needed (since we don't get it for free when using UDIV).
        hdr/CPU/Generic32 - PHPSEI, WritePSRc and SetMode now use the ARMv6 CPS instruction where possible, delivering performance gains compared to the equivalent MSR. Where CPS isn't used, WritePSRc now attempts to emit a single MSR instead of the 4 instructions generated by the SCPSR macro.
        Tested on Cortex-A15
        PSR manipulation macros trialed on a few different CPU architectures to arrive at the conclusion that CPS is as good or better than MSR
      Version 2.60. Tagged as 'HdrSrc-2_60'
  8. 04 Apr, 2016 1 commit
  9. 29 Feb, 2016 1 commit
    • Ben Avison's avatar
      New compile-time architecture flags: · 9f9d0319
      Ben Avison authored
        * ARMv7VE (virtualisation extension)
        * ARMv8
        * ARMv8 cryptographic extension
        Machine=RPi builds now targets ARMv8 as well as ARMv6 and ARMv7;
        Machine=CortexA7 builds now set the VE flag; and All and All32 include ARMv8.
      Version 2.58. Tagged as 'HdrSrc-2_58'
  10. 29 Nov, 2015 1 commit
  11. 08 Nov, 2015 3 commits
    • Ben Avison's avatar
      Add a symbol definition for HYP mode · fa17397d
      Ben Avison authored
        This is the mode used for hypervisor exceptions in ARMv7VE and later.
      Version 2.56. Tagged as 'HdrSrc-2_56'
    • Ben Avison's avatar
      More ADFS 4 support · 5de3a597
      Ben Avison authored
        * Decloak ATA switcher error base
      Retagged as 'HdrSrc-2_55'
      Version 2.55. Not tagged
    • Ben Avison's avatar
      Support for OMAP543x, AM5728 and ADFS 4 · ac8f2a6d
      Ben Avison authored
        * Complete the Cortex-A7 support which was initially added for RPi 2, to
          allow for builds that only target Cortex-A7. Because Cortex-A15 and
          Cortex-A17 CPUs are indistinguishable architecturally from Cortex-A7
          (all are ARMv7VE with VFPv4, Advanced SIMD v2 and hardware integer divide)
          any such platforms are expected to use Machine=CortexA7. Also bear in
          mind that if we ever support multiple cores on big.LITTLE CPUs, execution
          can move between these core types at runtime, making an assembly time
          option to distinguish between them meaningless!
        * Correct Machines All and All32 to include support for VFPv4
        * Decloak the ATA driver SWI chunk
        * Add a global error allocation for use by the ATA subsystem (placed in
          global space because it propagates into the CD stack)
      Version 2.55. Tagged as 'HdrSrc-2_55'
  12. 29 Sep, 2015 1 commit
  13. 23 Aug, 2015 1 commit
    • Ben Avison's avatar
      Resync with allocations database · 925f3379
      Ben Avison authored
        Two extra kernel error numbers in NewErrors
        Updated comment in FSNumbers to state filing system prefix used by SDFS
      Version 2.53. Tagged as 'HdrSrc-2_53'
  14. 05 Aug, 2015 1 commit
    • Jeffrey Lee's avatar
      Update VMSAv6 definitions · 625c738d
      Jeffrey Lee authored
        hdr/MEMM/VMSAv6 - Remove XScale-specific L1_X, L2_X, L2L_X flags. Add L2_S flag. Add definitions for the cache size ID register fields.
        Tested on ARM11, Cortex-A7, -A8, -A9, -A15
      Version 2.52. Tagged as 'HdrSrc-2_52'
  15. 18 May, 2015 1 commit
    • Ben Avison's avatar
      Resync with allocations database · 8934eabd
      Ben Avison authored
        * Filetype for MJPEG files
        * Extra AUN error
        * Resolved error base clash between AbortRegions and VFPSupport
        * New alias for OS_Byte 221
      Version 2.51. Tagged as 'HdrSrc-2_51'
  16. 02 Feb, 2015 1 commit
    • Ben Avison's avatar
      Add Raspberry Pi 2 support · 89b7f37b
      Ben Avison authored
        The Raspberry Pi ROM now joins the IOMD ROM in supporting multiple
        architectures, in this case ARMv6 and ARMv7. This has been achieved by
        creating a new machine type specific for Raspberry Pi. The old ARM11ZF
        machine type remains for builds that are ARM11-only.
        The Raspberry Pi 2 uses the Cortex-A7 processor, which includes version 4
        of the VFP instruction set and version 2 of the Advanced SIMD (NEON)
        instruction set. You can now switch on this at assembly time using the new
        switches NoARMVv4 and SupportARMVv4.
      Version 2.50. Tagged as 'HdrSrc-2_50'
  17. 06 Jan, 2015 1 commit
  18. 19 Oct, 2014 1 commit
    • Steve Revill's avatar
      Complete re-implementation of install phase. · 8865464a
      Steve Revill authored
      We now do the same things as for the export phase, but rather than putting
      the results into the build's export directory, we put them somewhere relative
      to the INSTDIR directory.
      Version 2.48. Tagged as 'HdrSrc-2_48'
  19. 12 Oct, 2014 1 commit
  20. 24 Sep, 2014 1 commit
    • Ben Avison's avatar
      Resync with allocations database, and a warning fix · a7cfad09
      Ben Avison authored
        * Extra filetype for Windows .CUR files
        * Warning about Hdr:Wimp being included before Hdr:Services was mistakenly
          being generated every time both files were included, in any order. This
          is because it tested Service_WimpToolSpritesChanged, but that's declared
          using the # operator, so it is valid for forward as well as backward
          references. Changed it to test on a variable, which is only valid for
          backward references (see corresponding change to Wimp 5.46).
        Tested the warning bugfix with the BASIC module, which uses both headers.
      Version 2.46. Tagged as 'HdrSrc-2_46'
  21. 16 Sep, 2014 1 commit
  22. 04 Aug, 2014 1 commit
  23. 29 Jun, 2014 1 commit
    • Jeffrey Lee's avatar
      Add DADebug support to Hdr:Debug · e43e67f3
      Jeffrey Lee authored
        hdr/Debug - Added DADebug support. Doesn't cache the DADebug WriteC pointer in memory anywhere, so can safely be used from a ROM module or if DADebug is loaded/unloaded.
        Tested on BB-xM
      Version 2.43. Tagged as 'HdrSrc-2_43'
  24. 09 Mar, 2014 2 commits
    • Jeffrey Lee's avatar
      Add OS_SpriteOp 65 (TileSpriteScaled) definition · 66481a23
      Jeffrey Lee authored
        hdr/Sprite - Added OS_SpriteOp 65 definition, bump SpriteReason_BadReasonCode up to 66
        Tested on Iyonix, BB-xM
      Version 2.42. Tagged as 'HdrSrc-2_42'
    • Ben Avison's avatar
      Resync with allocations database · c09e76e7
      Ben Avison authored
        * Add extra flag definition to Hdr:GraphicsV
        * Decloak two system service calls previously used only by ROL fork
      Version 2.41. Tagged as 'HdrSrc-2_41'
  25. 26 Jan, 2014 1 commit
  26. 03 Jan, 2014 1 commit
  27. 15 Dec, 2013 1 commit
  28. 29 Nov, 2013 1 commit
    • Ben Avison's avatar
      Resync with allocations database · 84767a10
      Ben Avison authored
        * Add error block for BASIC module
        * Retire RTCSupport switch in Hdr:Machine.Machine
      Version 2.37. Tagged as 'HdrSrc-2_37'
  29. 18 Nov, 2013 1 commit
    • Ben Avison's avatar
      Resync with allocations database · d810cab3
      Ben Avison authored
        * Retire hdr:FreeWay in favour of hdr:FreewayReg
        * SWI chunk and error base for RTC module
        * New shared single error number for drivers to report hardware not found
        * Single service calls for boot sequence to inform (primarily ROM) modules
          that system variables have become valid
      Version 2.36. Tagged as 'HdrSrc-2_36'
  30. 13 Oct, 2013 1 commit
    • Jeffrey Lee's avatar
      Add OS_SpriteOp 38 definition · 25c2cd72
      Jeffrey Lee authored
        hdr/Sprite - Add OS_SpriteOp 38 (CreateRemoveAlpha), for converting between 1bpp masks, alpha masks, and alpha channels
        Tested on BB-xM
      Version 2.35. Tagged as 'HdrSrc-2_35'
  31. 06 Oct, 2013 1 commit
  32. 25 Sep, 2013 1 commit
  33. 24 Aug, 2013 1 commit
    • Ben Avison's avatar
      Workaround StrongARM bug in PLP macro · 0be53ec1
      Ben Avison authored
        Conditional MSR bug applied to the version of PLP that's used when both
        pre-ARMv3 and 32-bit compatibility is required (e.g. disc builds).
        Spotted by Sprow
      Version 2.32. Tagged as 'HdrSrc-2_32'
  34. 06 Aug, 2013 1 commit
  35. 27 Jul, 2013 2 commits