[coreboot] xmmstack
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Fri Apr 3 12:27:07 CEST 2009
On 03.04.2009 11:51, Stefan Reinauer wrote:
> On 03.04.2009 4:16 Uhr, Carl-Daniel Hailfinger wrote:
>
>> And to be honest, I want to test how well Urbez' gcc+xmmstack solution
>> works out for the hard targets.
>>
>>
>
> Any idea where to get that one? All I could ever find was a single web
> page talking about it.
>
Urbez mailed it to me a few weeks ago with the following explanation:
> Remember that in some CPU's you must activate in CR4 the 9 bit, for work
> correctly.
>
> movl 0x200,%eax #CR4 bit 9 for SSE
> movl %eax,%cr4
>
>
> The application is too primitive, but works fine.
> It uses pcre, for easy parse the *.s generated with gcc, in the Code
> of xmmstack.c say's the options that i use for generate the *.s assembly
> code:
>
> gcc -fomit-frame-pointer -fno-stack-protector *.c
>
> if you will you can delete the code for mmx registers, but can be util
> for another person.
>
It's attached to this mail.
Regards,
Carl-Daniel
--
http://www.hailfinger.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmmstack.c
Type: text/x-csrc
Size: 22696 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090403/0f4118a2/attachment.c>
More information about the coreboot
mailing list