Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | Reason code: |
0 => PreGrow handler | |
1 => PostGrow handler | |
2 => PreShrink handler | |
3 => PostShrink handler | |
4 => TestShrink handler | |
5 => Used by RISCOS Ltd Abortable DAs | |
6 => ResizePMP handler | |
R12 | Workspace pointer |
- | Other registers dependent on reason code |
Exit | |
---|---|
- | Dependent on reason code |
The dynamic area handler code is a multi-purpose entry point that the kernel uses to inform the owner of a dynamic area of certain events, and to allow the owner to exert control over the behaviour of the area.
The workspace pointer in R12 is the same as the one supplied in R7 to OS_DynamicArea 0, or the base address of the area if -1 was supplied.
Reason code 6 is only used by Physical Memory Pool dynamic areas, and must be implemented. The other reason codes are not used.