Converting RTL methods to the new style.

This commit is contained in:
Ben Vanik
2013-05-26 22:44:22 -07:00
parent c4e0347932
commit 64eb2aa2b3
3 changed files with 236 additions and 114 deletions

View File

@@ -49,6 +49,11 @@ namespace kernel {
#define IMPL_MEM_ADDR(a) (a==0?NULL:xe_memory_addr(state->memory(), a))
#define IMPL_MEM_16(a) (uint16_t)XEGETUINT16BE(IMPL_MEM_ADDR(a));
#define IMPL_MEM_32(a) (uint32_t)XEGETUINT32BE(IMPL_MEM_ADDR(a));
#define IMPL_SET_MEM_16(a, v) (*(uint16_t*)IMPL_MEM_ADDR(a)) = XESWAP16(v)
#define IMPL_SET_MEM_32(a, v) (*(uint32_t*)IMPL_MEM_ADDR(a)) = XESWAP32(v)
} // namespace kernel
} // namespace xe