From c30932c83ed265ac3c940de277ab8ab6fe13deac Mon Sep 17 00:00:00 2001 From: "Iliya Mihailov (Ghost)" Date: Tue, 19 Dec 2006 22:23:52 +0000 Subject: [PATCH] CPU frequency bug fix git-svn-id: svn://kolibrios.org@240 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/gmon/tab_info.inc | 41 ++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/programs/system/gmon/tab_info.inc b/programs/system/gmon/tab_info.inc index 8bc16d7d41..747db4f2b3 100644 --- a/programs/system/gmon/tab_info.inc +++ b/programs/system/gmon/tab_info.inc @@ -36,22 +36,33 @@ mmx_en: int 0x40 mov eax, 18 mov ebx, 5 int 0x40 - push eax - fild dword[esp] - push 1000;000 - fidiv dword[esp] - fidiv dword[esp] - fstp dword[esp] - mov esi, esp - call ftoa - mov ebx, 160 * 65536 + 295 - mov edx, Data_String - mov eax, 4 - mov esi, 7 - xor ecx, ecx + + xor edx, edx + mov ebx, 1000000 + div ebx + mov ecx, eax + call digit_len + mov eax, 47 + mov edx, 160 * 65536 + 295 + xor esi, esi int 0x40 - pop eax - pop eax + + ; push eax ; Вернуть код после исправления ftoa + ; fild dword[esp] + ; push 1000;000 + ; fidiv dword[esp] + ; fidiv dword[esp] + ; fstp dword[esp] + ; mov esi, esp + ; call ftoa + ; mov ebx, 160 * 65536 + 295 + ; mov edx, Data_String + ; mov eax, 4 + ; mov esi, 7 + ; xor ecx, ecx + ; int 0x40 + ; pop eax + ; pop eax ; Семейство и модель процессора mov eax, 47