[coreboot] [PATCH] Add clobber regs to AMD CAR

Rudolf Marek r.marek at assembler.cz
Sat Jan 16 09:48:09 CET 2010


Following patch adds proper inline assembly register clobbers to the AMD CAR 
code. The reason is that the GCC expects some values to be still valid, but 
those are overwritten by the inline code (ecx). The memcopy implementation is 
taken from linux kernel 2.6.32. The EBP relocation is to needed because the code 
does not use frame pointer. As an extra safety I added a clobber of all 
available registers. To make GCC extra sure that no value is valid, which should 
catch pointers to variables on the stack too.

Can someone test this change on something else than model 0fh please?

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup_clobbers.patch
Type: text/x-diff
Size: 4891 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100116/e5090a07/attachment.bin>

More information about the coreboot mailing list