h6. [[OS SWI Calls]] h6(. » [[OS_DynamicArea]] h6((. » Dynamic Area Handler Code h2. Dynamic Area Handler Code |_<^{width:3em}. Entry | | |/8<^. R0 |<^. Reason code: | |<^. 0 => [[Dynamic Area PreGrow|PreGrow handler]] | |<^. 1 => [[Dynamic Area PostGrow|PostGrow handler]] | |<^. 2 => [[Dynamic Area PreShrink|PreShrink handler]] | |<^. 3 => [[Dynamic Area PostShrink|PostShrink handler]] | |<^. 4 => [[Dynamic Area TestShrink|TestShrink handler]] | |<^. 5 => [[Dynamic Area AbortTrap|AbortTrap handler]] | |<^. 6 => [[Dynamic Area ResizePMP|ResizePMP handler]] | |<^. R12 |<^. Workspace pointer | |<^. - |<^. Other registers dependent on reason code | |_<^{width:3em}. Exit | | |<^. - |<^. Dependent on reason code | h4. Use 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. h4. Notes 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. For [[Physical Memory Pool]] dynamic areas, reason code 6 is the only reason code used, and its implementation is mandatory. h4. See also * [[OS_DynamicArea]] * [[OS_DynamicArea 0]] * [[OS_DynamicArea 2]]