[coreboot] [PATCH] fix clobbers in the K8 CAR

Rudolf Marek r.marek at assembler.cz
Sun Feb 21 23:42:17 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

This patch adds clobber regs into the play as assembly trashes random registers.
I was bitten by this while doing MSR I/O because ECX got corrupted. I attempted
to create nice barrier for GCC while changing the stack location too.

The memcpy code was taken from Linux kernel, dont know to whom attribute the
copyright on it. If it is OK with the note, otherwise:

Signed-off-by: Rudolf Marek <r.marek at assembler.cz>

Thanks,
Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuBtsgACgkQ3J9wPJqZRNXtXgCeJGvuA7dTdE5A+Tybw6zNIi2x
YbkAni1oBOZ9i6iqartAdKxaI8xJP76T
=ebvY
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aa.patch
Type: text/x-diff
Size: 4887 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100221/3619049d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aa.patch.sig
Type: application/octet-stream
Size: 72 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100221/3619049d/attachment.obj>


More information about the coreboot mailing list