diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-03-01 01:00:28 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-03-01 01:19:53 +0000 |
| commit | 6099b4600256552fc6f664c82b7dd0325a4b5b19 (patch) | |
| tree | 10f1f93ecaa8e77010048f10086cfaf9b42d55f3 | |
| parent | c2dee7786bf32cb66cedec226e42e79e06457c51 (diff) | |
amd64 initializecpu(): use 64bit type for rcr4() result
Right now %cr4 defined bits fit into the low word, but this is not true
with FRED.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
| -rw-r--r-- | sys/amd64/amd64/initcpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c index 4c57c27596ad..7161cf631508 100644 --- a/sys/amd64/amd64/initcpu.c +++ b/sys/amd64/amd64/initcpu.c @@ -276,7 +276,7 @@ void initializecpu(void) { uint64_t msr; - uint32_t cr4; + uint64_t cr4; TSENTER(); cr4 = rcr4(); |
