h6. [[OS SWI Calls]] h6(. » OS_Memory h2. OS_Memory h5. (SWI &68) |_<^{width:4em}. Entry | | |/2<^. R0 |<^. "Reason code":#reason (bits 0 - 7), | |<^. Flags (bits 8 – 31) which are reason code specific | |\2<^. All other registers are dependent on reason code| |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved | |\2<^. All other registers dependent on reason code| h4. Use The purpose of this call is to perform various operations for memory management. h4. Notes The action performed depends on the reason code value in R0. The flags (passed by R0 on entry) are specific to each reason code. h4(#reason). Reason Codes |_<^{width:4em}. #|_<^{width:4em}. Hex #|_<^. Action| |<^. 0|<^. &00|<^. [[OS_Memory 0|General page block operations (32 bit)]]| |<^. 1|<^. &01|<^. Reserved for system use| |<^. 2|<^. &02|<^. Reserved for system use | |<^. 3|<^. &03|<^. Reserved for system use | |<^. 4|<^. &04|<^. Reserved for system use | |<^. 5|<^. &05|<^. Reserved for system use | |<^. 6|<^. &06|<^. [[OS_Memory 6|Read the size of the physical memory arrangement table]]| |<^. 7|<^. &07|<^. [[OS_Memory 7|Read the physical memory arrangement table]]| |<^. 8|<^. &08|<^. [[OS_Memory 8|Read the amount of a specified sort of memory available]]| |<^. 9|<^. &09|<^. [[OS_Memory 9|Read controller presence and base logical address]]| |<^. 10|<^. &0A|<^. [[OS_Memory 10|Free pool lock]]| |<^. 11|<^. &0B|<^. Reserved for system use| |<^. 12|<^. &0C|<^. [[OS_Memory 12|Recommend page]]| |<^. 13|<^. &0D|<^. [[OS_Memory 13|Map in IO permanent]]| |<^. 14|<^. &0E|<^. [[OS_Memory 14|Map in IO temporary]]| |<^. 15|<^. &0F|<^. [[OS_Memory 15|Map out temporary IO]]| |<^. 16|<^. &10|<^. [[OS_Memory 16|Memory areas]]| |<^. 17|<^. &11|<^. [[OS_Memory 17|Memory access privileges]]| |<^. 18|<^. &12|<^. [[OS_Memory 18|Find access privilege]]| |<^. 19|<^. &13|<^. [[OS_Memory 19|Prepare for DMA]]| |<^. 20|<^. &14|<^. [[OS_Memory 20|Compatibility settings]]| |<^. 21|<^. &15|<^. [[OS_Memory 21|Map in IO permanent from 64 bit space]]| |<^. 22|<^. &16|<^. [[OS_Memory 22|Map in IO temporary from 64 bit space]]| |<^. 23|<^. &17|<^. [[OS_Memory 23|Reserve RAM pages]]| |<^. 24|<^. &18|<^. [[OS_Memory 24|Check memory access]]| |<^. 25|<^. &19|<^. [[OS_Memory 25|Read controller presence and base physical address]]| |<^. 64|<^. &40|<^. [[OS_Memory 64|General page block operations (64 bit)]]| |<^. 65|<^. &41|<^. [[OS_Memory 65|Logical to physical address translation]]| h4. See also * [[OS_Memory Page Blocks|OS_Memory Page Blocks (32 bit)]] * [[OS_Memory Page Blocks (64 bit)]]