Maamoun TK maamoun.tk@googlemail.com writes:
On Mon, Nov 30, 2020 at 10:56 PM Niels Möller nisse@lysator.liu.se wrote:
Hmm. I agree just lowering the stack pointer sounds a bit questionable. But if we use some other register to point into the protected zone, we should be fine? E.g.,
addi r10, r1, -0x40 C Save callee-save registers stvx v20, 0, r10 stvx v21, r6, r10 stvx v22, r7, r10 stvx v23, r8, r10
This is totally fine.
I changed it to do this (and it looks like you use the protected zone as a save area also in the new aes code).
How portable is this, do all relevant operating systems support storing data below the stack pointer?
Regards, /Niels