git: 048a9b2d377a - stable/13 - amd64: correctly calculate KVA of the preloaded ucode blob
Konstantin Belousov
kib at FreeBSD.org
Fri Sep 3 01:08:58 UTC 2021
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=048a9b2d377ae92d8fda7885971ee4b5f0cbd2c5
commit 048a9b2d377ae92d8fda7885971ee4b5f0cbd2c5
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-08-30 20:25:31 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-09-03 01:08:35 +0000
amd64: correctly calculate KVA of the preloaded ucode blob
(cherry picked from commit 9939af1a161e5c219ece5e7c5bc02dcb9a9960f7)
---
sys/amd64/amd64/machdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 2c8711fd3d2a..0c8234c9e917 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -1650,7 +1650,7 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
atomic_store_short((u_short *)0x472, 0x1234);
}
- physfree += ucode_load_bsp(physfree + KERNBASE);
+ physfree += ucode_load_bsp(physfree - kernphys + KERNSTART);
physfree = roundup2(physfree, PAGE_SIZE);
identify_cpu1();
More information about the dev-commits-src-all
mailing list