03.08.2013 Views

Decorated Operations for QorIQ P3/P4/P5 Processors - Freescale ...

Decorated Operations for QorIQ P3/P4/P5 Processors - Freescale ...

Decorated Operations for QorIQ P3/P4/P5 Processors - Freescale ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Decorated</strong> Macro Functions<br />

static inline uint8_t decorated_load_set_8(volatile void *a){<br />

uint8_t r;<br />

enum LOAD_DECORATION d = LOAD_DECORATION_SET;<br />

return r;<br />

}<br />

__ASM("lbdx %0, %1, %2":"=r"(r)<br />

: "r"(d), "r"(a)<br />

: "memory");<br />

static inline uint8_t decorated_load_dec_8(volatile void *a){<br />

uint8_t r;<br />

enum LOAD_DECORATION d = LOAD_DECORATION_DEC;<br />

return r;<br />

}<br />

__ASM("lbdx %0, %1, %2":"=r"(r)<br />

: "r"(d), "r"(a)<br />

: "memory");<br />

static inline uint8_t decorated_load_inc_8(volatile void *a){<br />

uint8_t r;<br />

enum LOAD_DECORATION d = LOAD_DECORATION_INC;<br />

return r;<br />

}<br />

__ASM("lbdx %0, %1, %2":"=r"(r)<br />

: "r"(d), "r"(a)<br />

: "memory");<br />

static inline uint16_t decorated_load_clear_16(volatile void *a){<br />

uint16_t r;<br />

enum LOAD_DECORATION d = LOAD_DECORATION_CLEAR;<br />

return r;<br />

}<br />

__ASM("lhdx %0, %1, %2":"=r"(r)<br />

: "r"(d), "r"(a)<br />

: "memory");<br />

<strong>Decorated</strong> <strong>Operations</strong> <strong>for</strong> <strong>QorIQ</strong> <strong>P3</strong>/<strong>P4</strong>/<strong>P5</strong> <strong>Processors</strong>, Rev. A<br />

14 <strong>Freescale</strong> Confidential Proprietary <strong>Freescale</strong> Semiconductor<br />

Preliminary—Subject to Change Without Notice

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!