Subversion Repositories Kolibri OS

Rev

Rev 7121 | Rev 7124 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7121 Rev 7122
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
74
$Revision: 7121 $
74
$Revision: 7122 $
Line 445... Line 445...
445
        mov     [debug_direct_print], al
445
        mov     [debug_direct_print], al
Line 446... Line 446...
446
 
446
 
447
        mov     al, [BOOT_VARS+BOOT_LAUNCHER_START] ; Start the first app (LAUNCHER) after kernel is loaded?
447
        mov     al, [BOOT_VARS+BOOT_LAUNCHER_START] ; Start the first app (LAUNCHER) after kernel is loaded?
Line 448... Line 448...
448
        mov     [launcher_start], al
448
        mov     [launcher_start], al
449
 
449
 
450
        mov     esi, BOOT_VARS+0x9080
450
        mov     esi, BOOT_VARS+BOOT_BIOS_HD
451
        movzx   ecx, byte [esi-1]
451
        movzx   ecx, byte [esi-1]
452
        mov     [NumBiosDisks], ecx
452
        mov     [NumBiosDisks], ecx
453
        mov     edi, BiosDisksData
453
        mov     edi, BiosDisksData
Line 2186... Line 2186...
2186
        jmp     dword [sys_system_table + ebx*4]
2186
        jmp     dword [sys_system_table + ebx*4]
2187
@@:
2187
@@:
2188
        ret
2188
        ret
2189
;------------------------------------------------------------------------------
2189
;------------------------------------------------------------------------------
2190
sysfn_shutdown:          ; 18.9 = system shutdown
2190
sysfn_shutdown:          ; 18.9 = system shutdown
2191
        cmp     ecx, 1
2191
        cmp     ecx, SYSTEM_SHUTDOWN
2192
        jl      exit_for_anyone
2192
        jl      exit_for_anyone
2193
        cmp     ecx, 4
2193
        cmp     ecx, SYSTEM_RESTART
2194
        jg      exit_for_anyone
2194
        jg      exit_for_anyone
2195
        mov     [BOOT_VARS+BOOT_SHUTDOWN_TYPE], cl
2195
        mov     [BOOT_VARS+BOOT_SHUTDOWN_TYPE], cl
Line 2196... Line 2196...
2196
 
2196
 
2197
        mov     eax, [TASK_COUNT]
2197
        mov     eax, [TASK_COUNT]