Skip to contentSkip to conversation

xen/arm: move regpair_to_uint64() and uint64_to_regpair() to regs.h

PATCH Michal Orzel 2 participants 2 messages Aug 24, 2022 – Aug 29, 2022

lore
Share & tools
lore

Michal Orzel

author Reviewed-by
#0 lore raw

Hi Jens,

Quoted 4 lines · Jens Wiklander

Moves the two helper functions regpair_to_uint64() and uint64_to_regpair() from xen/arch/arm/tee/optee.c to the common arm specific regs.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

As for the patch itself:

~Michal

#1 lore raw

Hi Michal,

Quoted 11 lines · Michal Orzel

Hi Jens,

Quoted 4 lines · Jens Wiklander

Moves the two helper functions regpair_to_uint64() and uint64_to_regpair() from xen/arch/arm/tee/optee.c to the common arm specific regs.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

As for the patch itself:

Thanks,
Jens

Quoted 2 lines

~Michal