Add RTOS memory read/write functions.