From fa0848780c33281f9659e910bbbc5f2e913f2f83 Mon Sep 17 00:00:00 2001 From: wangjiahua Date: Tue, 14 Dec 2021 13:55:00 +0800 Subject: [PATCH] fixup ddr5 clock overflow in some architecture --- src/core/dmi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dmi.cc b/src/core/dmi.cc index a364ac06..c5bd8002 100644 --- a/src/core/dmi.cc +++ b/src/core/dmi.cc @@ -1589,7 +1589,7 @@ int dmiversionrev) char buffer[80]; u = data[0x16] << 8 | data[0x15]; // speed - clock = u * 1000000; // u is a frequency in MHz + clock = u * 1000000ULL; // u is a frequency in MHz if (u == 0) strcpy(buffer, ""); else