Fix invalid AMB node handle being used when low on memory
Jeffrey Lee authored
Detail:
  s/Wimp08s - If OS_AMBControl allocate is asked for a AMB node with a size > 0, but no pages can be claimed, it frees the node and returns an invalid handle (0). Make sure that the Wimp's allocateslot routine is aware of this, so that we don't try passing that bad handle back to AMBControl later on
  s/Iconbar - Use nullptr constant instead of -1 when checking task_slotsize (aka AMB node handle on modern machines)
Admin:
  Tested on BB-xM
  Fixes abort seen when attempting to start a task with no pages in the free pool


Version 5.53. Tagged as 'Wimp-5_53'
7212561d
Name Last commit Last update
..
!Palette Import from cleaned 360 CD
AutoScroll Given a good thrashing.
Iconbar Fix invalid AMB node handle being used when low on memory
Memory Slacken pointer checks
NewSWIs Implement sprite translation table caching
Notes Spinner branch merged.
ProgErrs Import from cleaned 360 CD
RosMod Adapted assembly process so that the choice of Options file (previously based purely on the "System" variable) can be overridden by passing "OPTIONS=foo" as an argument to either MkRom, or to amu/amu_machine directly, or indirectly, by specifying it in the components file for a build. To accomplish this, it was necessary to switch from using aasm to objasm - hence the large number of source files affected in this commit.
Tiling Implement sprite translation table caching
Tiling3D Fix for missing window backgrounds/scroll bars when tiled sprite op not supported
Trace Add support for wide translation tables for window tool furniture
Watchdog Replace OS_SpriteOp reason code magic numbers with definitions. Add support for new screen modes.
Wimp Add support for wide translation tables for window tool furniture
Wimp01 Avoid unnecessary remainder calculations
Wimp02 Avoid unnecessary remainder calculations
Wimp03 Make use of power saving features when sat waiting for user input
Wimp04 Fix for background colour too light on non-bordered icons
Wimp05 Avoid unnecessary remainder calculations
Wimp06 Slacken pointer checks
Wimp07 Make use of power saving features when sat waiting for user input
Wimp08 Slacken pointer checks
Wimp08s Fix invalid AMB node handle being used when low on memory
Wimp09 Implement sprite translation table caching
Wimp10 Avoid unnecessary remainder calculations