xen/arm: move regpair_to_uint64() and uint64_to_regpair() to regs.h
Michal Orzel
Reviewed-byHi Jens,
Quoted 4 lines · Jens Wiklander
Moves the two helper functions
regpair_to_uint64()anduint64_to_regpair()fromxen/arch/arm/tee/optee.cto the common arm specificregs.h.
Would be good to add a justification that these helpers will be needed by subsequent patches. Also I can see that you make use of them only in the last patch so it would be natural to move this patch right before the one making use of these helpers.
Quoted 1 line
Signed-off-by Jens Wiklander <[email protected]>
As for the patch itself:
~Michal
Hi Michal,
Quoted 11 lines · Michal Orzel
Hi Jens,
Quoted 4 lines · Jens Wiklander
Moves the two helper functions
regpair_to_uint64()anduint64_to_regpair()fromxen/arch/arm/tee/optee.cto the common arm specificregs.h.Would be good to add a justification that these helpers will be needed by subsequent patches. Also I can see that you make use of them only in the last patch so it would be natural to move this patch right before the one making use of these helpers.
I put it at the beginning of the patches to get prerequisites in place before the tricky stuff, but I'll move it since that's preferred. I'll add update the commit message.
Quoted 5 lines
Quoted 2 lines
Signed-off-by Jens Wiklander <[email protected]>As for the patch itself:
Reviewed-by Michal Orzel <[email protected]>
Thanks,
Jens
Quoted 2 lines
~Michal