arch/x86: Unify bootblock MMX register usage

Have same usage of registers with romcc bootblock
and C_ENVIRONMENT_BOOTBLOCK.

Change-Id: Ibfa80e40f0b736a904abf4245fc23efc0cdc458d
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30490
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki
2018-12-28 16:06:45 +02:00
parent 6267f5dd11
commit ee2e936f40
3 changed files with 24 additions and 18 deletions

View File

@@ -13,8 +13,8 @@
/*
* Store the initial timestamp for booting in mmx registers. This works
* because the bootblock isn't being compiled with MMX support so mm0 and
* mm1 will be preserved into romstage.
* because the bootblock isn't being compiled with MMX support so mm1 and
* mm2 will be preserved into romstage.
*/
.code32
@@ -22,12 +22,13 @@
stash_timestamp:
/* Save the BIST value */
movl %eax, %ebp
movl %eax, %ebx
finit
rdtsc
movd %eax, %mm0
movd %edx, %mm1
movd %ebx, %mm0
movd %eax, %mm1
movd %edx, %mm2
/* Restore the BIST value to %eax */
movl %ebp, %eax
movl %ebx, %eax