What is the current allocation of SWI's in RISC OS?
- User
What is the current allocation of SWI's in RISC OS?
- Assistant
As of my last update in 2023, RISC OS uses a convention called SWIs (Software Interrupts) to provide system calls to the operating system's kernel and various modules. These software interrupts are a fundamental mechanism for invoking operating system services from user programs.
The specific allocation of SWI numbers can be diverse because they are shared among the operating system kernel, various core modules, and third-party applications or modules. SWI numbers are generally divided into ranges, with each range allocated to a particular part of the system or to specific modules. The allocation might look something like this:
-
OS SWIs: The lowest range is typically reserved for the operating system's core functions. These include file handling, memory management, task scheduling, and more.
-
Module SWIs: RISC OS allows for modular extension of the operating system through dynamic areas. Each module, when loaded, can claim a range of SWIs for its use. The system usually defines specific ranges for these to avoid conflicts.
-
Application SWIs: There might be a range reserved for application use, though this is less common. Applications usually make calls to the system or module SWIs rather than implementing their own.
-
Vendor or Device Specific SWIs: Certain ranges are reserved for hardware vendors or specific devices, especially in the context of driver development or hardware interfacing modules.
-
Reserved and Undefined Ranges: There are ranges that are explicitly marked as reserved or undefined for future expansion or for preventing conflicts with existing software.
For the exact current allocation, identifying specific SWI numbers, ranges, and their assigned functions, one would typically refer to the latest RISC OS documentation or resources like the Programmer's Reference Manual. Given the niche status of RISC OS and its development being somewhat community-driven (with significant contributions from RISC OS Open Ltd), allocations can evolve or expand as new versions are released or as the community develops new modules.
If you're developing for RISC OS or looking to interface with its system calls directly, checking the most current documentation or resources provided by RISC OS Open or the relevant community forums would be essential.
-