• Robert Sprowson's avatar
    Fixes to HAL memory info calls and docs · 75de3830
    Robert Sprowson authored
    MemInfo.s:
     Several places in this code called the HAL or other ATPCS defined functions like memset() and hoped that the overall result was V clear. If any of them accidentally set V (for example a CMP that straddles 0x80000000) you ended up trying to look up an international error at the address of the reason code to OS_Memory.
     Now, explicitly clear V in the non error cases where an ATPCS function was called.
     Change the HAL_PhysInfo call to expect a physical ROM size back as an inclusive range, to match the RAM range subreason code. Add 1 to correct for this. A value of 0 & 0 is taken to mean "no physical ROM" as before.
    Middle.s:
     Document that 255 means "no IOMD" or "no VIDC", that's what the HALs have been using since year dot.
    
    Version 5.35, 4.79.2.248. Tagged as 'Kernel-5_35-4_79_2_248'
    75de3830
MemInfo 56.1 KB