Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 2021 01:08:57 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 048a9b2d377a - stable/13 - amd64: correctly calculate KVA of the preloaded ucode blob
Message-ID:  <202109030108.18318vPh004675@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=048a9b2d377ae92d8fda7885971ee4b5f0cbd2c5

commit 048a9b2d377ae92d8fda7885971ee4b5f0cbd2c5
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-08-30 20:25:31 +0000
Commit:     Konstantin Belousov <kib@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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109030108.18318vPh004675>