1. 18 Jan, 2020 1 commit
    • Jeffrey Lee's avatar
      Support over 2GB of RAM · fdb5c3e5
      Jeffrey Lee authored
      This updates the Tasks window and related code so that memory amounts
      are tracked in units of KB instead of bytes, allowing the code to
      support machines with more than 2GB of RAM. Where relevant, newer
      page-based OS APIs are used instead of older byte-based ones, which
      should future-proof the code for operation on machines with over 4GB of
      RAM (potentially up to the 1TB limit supported by the ARMv7 large
      physical address extension).
      Use definitions from Hdr:OSMem.
      
      Version 1.52. Tagged as 'Switcher-1_52'
      fdb5c3e5
  2. 26 Oct, 2018 1 commit
  3. 19 Aug, 2017 1 commit
  4. 08 May, 2016 1 commit
  5. 12 Feb, 2016 1 commit
    • Robert Sprowson's avatar
      Remove conflicting save desktop settings · 7b3c022c
      Robert Sprowson authored
      Saving the desktop boot file results in some conflicting settings. Since to be able to save it you must have a writable medium, you also have <Choices$Write> so you should be using !Configure.
      Remove the ChangeDynamicArea lines from being written
      * FontSize - this was specifically mentioned as conflicting in the RISC OS 3.60 User Guide, in the memory dialogue of old !Configure or Font setup plugin now.
      * SpriteSize - deprecated in the RISC OS 3.10 PRM, so don't encourage it to be non zero on boot up
      * RamFsSize - likewise in the memory dialogue of old !Configure or Disc setup plugin now.
      Still writes the WimpSlot size, since there's no corresponding !Configure item for that and it can be resized before every app starts anyway.
      
      Version 1.48. Tagged as 'Switcher-1_48'
      7b3c022c
  6. 26 Sep, 2015 1 commit
    • Jeffrey Lee's avatar
      Fix application and next slot size limits · bcb04bd9
      Jeffrey Lee authored
      Detail:
        s/Switcher - Fix ReadDynamicArea routine to use OS_ReadDynamicArea when reading the details of application space (since OS_DynamicArea doesn't recognise the fake application space DA)
      Admin:
        Tested on imx6
        Fixes inability to increase size of (e.g.) filer action wimpslot, and fixes 'next' slot size not being clamped to 512MB
      
      
      Version 1.47. Tagged as 'Switcher-1_47'
      bcb04bd9
  7. 31 Aug, 2015 1 commit
    • Jeffrey Lee's avatar
      Update to cope with physical memory pools · 4aff63cd
      Jeffrey Lee authored
      Detail:
        For physical memory pools, the max size returned by OS_ReadDynamicArea/OS_DynamicArea 2 might be a lie - although the maximum logical size of a PMP is fixed, the maximum physical size can be updated dynamically, so that a PMP can avoid wasting memory for a page list which is mostly unused.
        So whenever we want to resize a PMP, we ignore the max size indicated by the OS and instead treat it as if it has a max of 4GB
        s/Switcher - Implement the above, by replacing calls to OS_ReadDynamicArea with calls to OS_DynamicArea 2 (so DA flags can be read). Also fix some bits of code to do unsigned comparisons on size values, and to cope with the fact that OS_ChangeDynamicArea essentially limits us to +/-2GB at a time (although currently we just clamp the request, rather than make multiple requests)
      Admin:
        Tested on Pandaboard
      
      
      Version 1.46. Tagged as 'Switcher-1_46'
      4aff63cd
  8. 17 Jul, 2015 1 commit
    • Jeffrey Lee's avatar
      Use new OS_Memory 16 items for calculating correct system workspace & hardware/system size · db9b49d0
      Jeffrey Lee authored
      Detail:
        s/Switcher - Calculate system workspace as the sum of ZeroPage, ScratchSpace and DebuggerSpace sizes. This fixes the value being 4KB smaller than it should be when high processor vectors are in use (since the debugger is currently given a page of its own for that case). Also include processor vector page (if any) in hardware/system total (currently not needed, but may be in future)
      Admin:
        Tested on Raspberry Pi
        Values listed in system memory section now total up correctly
      
      
      Version 1.45. Tagged as 'Switcher-1_45'
      db9b49d0
  9. 27 Jan, 2015 1 commit
    • Robert Sprowson's avatar
      Fix for menu opening position · 17cc19c4
      Robert Sprowson authored
      Switcher took it upon itself to open its menus at x-width/2,y-12 rather than x-64,y+0 like the Style Guide says.
      
      Version 1.44. Tagged as 'Switcher-1_44'
      17cc19c4
  10. 21 Dec, 2014 1 commit
    • Robert Sprowson's avatar
      Escape some dollars, sort out value of NULL · dbf8b9c4
      Robert Sprowson authored
      Change $ => $$ to reduce substitution warnings.
      Be consistent about NULL (being 0) not -1, otherwise the total memory bar vanishes on systems with >= 2GB of RAM.
      
      Version 1.43. Tagged as 'Switcher-1_43'
      dbf8b9c4
  11. 22 Jul, 2014 1 commit
    • Jeffrey Lee's avatar
      Treat memory sizes as unsigned · 92303eae
      Jeffrey Lee authored
      Detail:
        s/Switcher - Treat memory sizes as unsigned values. We don't deal with negative sizes, so there's no reason to be using signed arithmetic.
      Admin:
        Tested on BB-xM
      
      
      Version 1.42. Tagged as 'Switcher-1_42'
      92303eae
  12. 17 Nov, 2012 1 commit
    • Ben Avison's avatar
      Fix interactive help on iconbar menu · 7c360ff6
      Ben Avison authored
      Detail:
        There were actually two problems:
        * No account was taken of the fact that the menu item indexes were different
          in the shortened menu.
        * The static variable "menu_userblk" was needed for decoding help messages,
          but its initialisation in the icon bar menu case was accidentally chopped
          out along with the code that customised the third menu item (the one that
          said "Task display" on the icon bar menu and says "Task '<taskname>'" on
          the task display menu). This bug does not seem to have been reproducible
          on all platforms due to the nature of uninitialised variables.
      Admin:
        Tested on Raspberry Pi. Joint work by Willi Theiss and Ben Avison.
      
      Version 1.41. Tagged as 'Switcher-1_41'
      7c360ff6
  13. 31 Oct, 2012 1 commit
    • Steve Revill's avatar
      Work-around for bug introduced in 1.39. · bfb57fdf
      Steve Revill authored
      Data abort from interactive help on Switcher menu items has been
      clobbered by disabling menu item help in s.Switcher (see FIXME).
      This needs sorting out properly when time permits.
      
      Version 1.40. Tagged as 'Switcher-1_40'
      bfb57fdf
  14. 12 Sep, 2012 1 commit
    • Ben Avison's avatar
      Applied some polish ahead of the Raspberry Pi release · a3488144
      Ben Avison authored
      Detail:
        * Simplified the icon bar menu (all the old options are still available
          from the menu on the "task display" window).
        * Fixed the heroes list code - it looks like this broke when the ROM moved
          to a top-bit-set address, and nobody bothered fixing it until now.
        * Made the code to reset the machine manually conditional on NoARMv3,
          since all ARMv3+ machines have OSes that implement OS_Reset. This makes
          the module build cleanly for all current ROM builds.
      Admin:
        Tested in a Raspberry Pi build
      
      Version 1.39. Tagged as 'Switcher-1_39'
      a3488144
  15. 12 Aug, 2012 1 commit
  16. 29 Jul, 2012 1 commit
    • Robert Sprowson's avatar
      Add support for 'PostDesk' shutdown scripts · 2ad3fd32
      Robert Sprowson authored
      Useful for small clearup activities on each shutdown. As we're trying to shut down the range of things looked for is very small compared with the PreDesk directory: no sprites, no apps (or directories), no utilities, no BASIC, no modules. Keep it simple and fast!
      * If Choices:Boot.PostDesk is present, any obey files within it are obey'd
      * Swap false/true to {FALSE} and {TRUE}
      * TaskManager_Shutdown flag bit 7 can skip the shutdown scripts
      * Simplified evaluation of Boot$OSVersion
      * Changed pre RISC OS 3.50 reset to actually do a reset rather than just reenter the desktop
      * Shared a few constant strings
      
      Version 1.37. Tagged as 'Switcher-1_37'
      2ad3fd32
  17. 28 Jul, 2012 1 commit
    • Robert Sprowson's avatar
      Add flag bits 5 and 6 to TaskManager_Shutdown · 46fe0819
      Robert Sprowson authored
      * Two new error messages for invalid shutdown flag combinations
      * Removed shutdown_swi poll(byte)word support, when ProvideStartTask is switched out the code now uses misc_pollbyte
      * New flag soft_poweroff to save having to keep calling OS_ReadSysInfo
      * Use definitions from HighFSI, OsWords, OsBytes, Variables
      * Proginfo icon numbers defined
      * Permanently enabled TrueMemorySize switched code
      * Add a note that the error base is bogus for this module
      
      Version 1.36. Tagged as 'Switcher-1_36'
      46fe0819
  18. 02 Jan, 2012 1 commit
    • Robert Sprowson's avatar
      Copyright date update. · b84bafd8
      Robert Sprowson authored
      Nonsensical range of dates (?!?) changed to start date like all other
      applications, since copyright applies from a given date *onwards* which
      in the UK is 70 years.
      b84bafd8
  19. 27 Nov, 2011 1 commit
  20. 13 Oct, 2011 1 commit
  21. 21 Sep, 2011 1 commit
  22. 04 Aug, 2011 1 commit
    • Jeffrey Lee's avatar
      Update to use OSRSI6 header · ac939d4c
      Jeffrey Lee authored
      Detail:
        s/Switcher - Updated to use OSRSI6 header for OS_ReadSysInfo 6 item code instead of a magic number
      Admin:
        Tested on rev A2 BB-xM
      
      
      Version 1.32. Not tagged
      ac939d4c
  23. 04 Feb, 2011 1 commit
    • Steve Revill's avatar
      Modified the main window to open at a sensible position and size. · bfef1780
      Steve Revill authored
      The main window now opens centred on screen and as large as it can without
      being too big (i.e. still leave some of the screen free around it).
      
      Also tweaked the open_centre function to calculate the correct amount (was
      one pixel out!).
      
      Version 1.32. Tagged as 'Switcher-1_32'
      bfef1780
  24. 21 Nov, 2010 1 commit
    • Jeffrey Lee's avatar
      Fix reinitramfsfiler logic · 60b0d7fd
      Jeffrey Lee authored
      Detail:
        s/Switcher - My previous checkin broke the reinitramfsfiler logic, causing the StartFiler service call to not be sent when it should have been.
      Admin:
        Tested properly this time; RAM disc creation/resizing/destruction works properly now.
      
      
      Version 1.31. Tagged as 'Switcher-1_31'
      60b0d7fd
  25. 14 Nov, 2010 1 commit
    • Jeffrey Lee's avatar
      Fix occasional alignment exceptions on ARMv6+ · 0bcae231
      Jeffrey Lee authored
      Detail:
        s/Switcher - As described in bug #256, sometimes the Switcher will crash if the task display window is open while launching Edit. The cause was that single_resize was not checking for the case that dragBar==-1 or dragBar==-2, resulting in an alignment fault when attempting to load icb_taskage from the icon block.
        Also fixed reinitramfsfiler to cope with the possibility of dragBar being a top bit set pointer.
      Admin:
        Tested on BB-xM rev A3.
        Fixes bug #256.
      
      
      Version 1.30. Tagged as 'Switcher-1_30'
      0bcae231
  26. 19 Jan, 2010 1 commit
  27. 18 Jan, 2010 1 commit
  28. 16 Feb, 2006 1 commit
  29. 15 Sep, 2005 2 commits
  30. 21 Jun, 2004 1 commit
  31. 05 Jan, 2004 1 commit
  32. 21 Feb, 2003 1 commit
  33. 11 Jan, 2003 1 commit
  34. 28 Nov, 2002 1 commit
  35. 22 Nov, 2002 1 commit
    • Robert Sprowson's avatar
      Addition of "Configure" to the menu. · d6cd9ec2
      Robert Sprowson authored
      This entry will be greyed out if on starting there is nothing in
      Boot$OSVersion,otherwise it will choose where it looks for configure
      based on whether it is >=350 much like the DeskRun obey file did.
      Resources updated to match.
      
      Version 1.22. Tagged as 'Switcher-1_22'
      d6cd9ec2
  36. 07 Nov, 2002 1 commit
    • Kevin Bracey's avatar
      Moved dynamic areas section up above system section. · c98692ab
      Kevin Bracey authored
      Improved some redraws.
      Added new areas to make the total display add up (requires new Kernel to get
      correct figures).
      Fixed dragging to get nicer numbers.
      Fixed 4K "negative bar" plotting problem.
      
      Version 1.21. Tagged as 'Switcher-1_21'
      c98692ab
  37. 01 Nov, 2002 1 commit
    • Ben Avison's avatar
      Fixed restarting of desktop Exit - the code was already there to use R2... · 1c4b13c6
      Ben Avison authored
      Fixed restarting of desktop Exit - the code was already there to use R2 returned from Wimp_Poll to determine if a SC-F12 was sent from a task or not, but an overcomplicated Wimp_Poll subroutine was acidentally preserving
      
      R2 over the SWI, so this never worked!
      Also fixed the templates so the save box looks okay with 3D windows enabled.
      Removed the Ursula version because it contains no useful differences and the
      build process will work fine without it.
      
      Version 1.20. Tagged as 'Switcher-1_20'
      1c4b13c6
  38. 26 Oct, 2002 1 commit
    • Robert Sprowson's avatar
      Switcher hypenates the date it gets from OS_Byte 0 · 8faaa5d0
      Robert Sprowson authored
      Where the OS reports it supports it,power off is performed by calling
      OS_Reset with a magic word in R0 rather than peeking IOMD directly.
      Templates altered to wordwrap the "shutdown" and "powrdown" boxes for users
      with non Homerton font.
      CTRL-SH-F12 followed by CTRL-SH-F12 cancels any pending 5s power off
      callback which would otherwise have been very annoying!
      Info box font is noted from the templates file rather than being hardwired
      Iconbar icon name changed to "taskmanager" to allow reuse of "switcher".
      
      Version 1.19. Tagged as 'Switcher-1_19'
      8faaa5d0
  39. 10 May, 2001 1 commit