[PATCH] purgatory: compile sha256.c only on ia64 with -O0
richard at nod.at
Mon Apr 1 06:05:55 EDT 2013
Am 01.04.2013 07:16, schrieb Zhang Yanfei:
>> I believe the above portion will break make dist my
>> causing it to omit purgatory/arch/* other than
> Ah, I've missed this in my review, too.
> Other than this, the change about purgatory/sha256.o below looks sound,
The dist mechanism is quite strange and error prone.
Why can't you just use git archive in the $(TARBALL) target?
I'll happily send a patch...
Back to the purgatory/sha256.o issue, I did some more tests.
First I thought memcpy() within purgatory is slow, but it isn't.
Does kexec reset the CPU so some kind of legacy mode during purgatory?
It looks like the same code in sha256.o is fast in normal user space
but very slow during purgatory.
Computing sha256 of a 9MiB blob takes less than a second in user space
and 16 seconds (with my patch). Otherwise it takes > 25 seconds.
More information about the kexec