trunk: print cpu count on the debug board

git-svn-id: svn://kolibrios.org@2443 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2012-03-09 15:50:49 +00:00
parent 3340831e5e
commit 2f5fd7a295
4 changed files with 59 additions and 17 deletions

View File

@@ -295,6 +295,8 @@ include 'init.inc'
org OS_BASE+$
include 'fdo.inc'
align 4
high_code:
mov ax, os_stack
@@ -980,6 +982,13 @@ if defined debug_com_base
end if
mov eax, [cpu_count]
test eax, eax
jnz @F
mov al, 1 ; at least one CPU
@@:
DEBUGF 1, "K : %d CPU detected\n", eax
; START MULTITASKING
; A 'All set - press ESC to start' messages if need
@@ -1005,7 +1014,6 @@ end if
; Fly :)
include 'unpacker.inc'
include 'fdo.inc'
align 4
boot_log: