drm/nouveau/pwr/fuc: add ld/st macros
Signed-off-by: Martin Peres <martin.peres@free.fr> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
d5837df18c
commit
b9fcf971bf
|
@ -251,6 +251,16 @@
|
|||
*/ clear b32 $r0
|
||||
#endif
|
||||
|
||||
#define st(size, addr, reg) /*
|
||||
*/ movw $r0 addr /*
|
||||
*/ st size D[$r0] reg /*
|
||||
*/ clear b32 $r0
|
||||
|
||||
#define ld(size, reg, addr) /*
|
||||
*/ movw $r0 addr /*
|
||||
*/ ld size reg D[$r0] /*
|
||||
*/ clear b32 $r0
|
||||
|
||||
// does a 64+64 -> 64 unsigned addition (C = A + B)
|
||||
#define addu64(reg_a_c_hi, reg_a_c_lo, b_hi, b_lo) /*
|
||||
*/ add b32 reg_a_c_lo b_lo /*
|
||||
|
|
Loading…
Reference in a new issue