grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HELP] cryptomount is slow, what is the proper way to [PATCH] libgcr


From: tomli
Subject: Re: [HELP] cryptomount is slow, what is the proper way to [PATCH] libgcrypt-grub?
Date: Sun, 28 Jan 2018 17:03:15 +0800
User-agent: Mutt/1.9.1 (2017-09-22)

> In GRUB SSE registers are disabled. If you want to use SSE, you need to
> make sure you enable them and that they are disabled again before kernel
> handoff

Thanks for the tip.
 
>> I have no idea about how to integrate my changes. For example, how to link
>> .c and .S assembly together in the same GRUB module by changing 
>> import_gcry.py?
>> I can't understand. From some comments, modifications of libgcrypt itself
>> is not
>> allowed at all, and import_gcry.py should do all the additional fixups?

> Yes, just put your version of libgcrypt there and rerun ./autogen.sh

I've added a .S file for the additional assembly code to be link with
sha512.c, but apparently import_gcry.py doesn't know how to preprocess
this file:

    WARNING: unknown file sha512-sse2-x86.S
    gcry_sha512

I've read import_gcry.py but the preprocessing is pretty complicated.
What is the correct way to make my assembly code be recognized and
preprocessed as a grub module by the script?

Cheers,
Tom Li



reply via email to

[Prev in Thread] Current Thread [Next in Thread]