Showing changes from revision #2 to #3:
Added | Removed | Changed
Entry | |
---|---|
R0 | 6 |
R3 | Size of area |
Exit | |
---|---|
R0 | Preserved |
R2 | Block |
R3 | Preserved |
The purpose of this call is to return an area of free RMA claimed for use.
Starting with RISC OS 2.01, memory allocated by this call will have a start address of (n MOD 16)=4. This can be used to help to improve performance by allowing programmers to easily align their code/data to cache-line boundaries (assuming a 16 byte cache line size). In RISC OS 5.00 the alignment was changed to (n MOD 32)=20, which can be useful for machines with 32 byte cache lines.
OS_Module 24 can be used to allocate a “naturally aligned” block at an arbitrary power of two alignment (i.e. (n MOD x)=0).