Added dynamic generation of addresses for set_pages_ro and set_pages_rw functions