Fix EN comments in kernel
- Minor tweaks and translations from RU. - Includes work by @rgimad. git-svn-id: svn://kolibrios.org@10070 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
48bd92cda2
commit
f80a8960b0
@ -414,7 +414,7 @@ sayerr:
|
|||||||
test al, 2
|
test al, 2
|
||||||
loopnz @b
|
loopnz @b
|
||||||
|
|
||||||
mov al, 0xf6 ; Сброс клавиатуры, разрешить сканирование
|
mov al, 0xf6 ; Keyboard reset, enable scanning
|
||||||
out 0x60, al
|
out 0x60, al
|
||||||
xor cx, cx
|
xor cx, cx
|
||||||
@@:
|
@@:
|
||||||
@ -875,7 +875,7 @@ end if
|
|||||||
xor dx, dx
|
xor dx, dx
|
||||||
div bx
|
div bx
|
||||||
if lang eq ru
|
if lang eq ru
|
||||||
; подождите 5 секунд, 4/3/2 секунды, 1 секунду
|
; подождите 5 секунд, 4/3/2 секундЫ, 1 секундУ
|
||||||
cmp al, 5
|
cmp al, 5
|
||||||
mov cl, ' '
|
mov cl, ' '
|
||||||
jae @f
|
jae @f
|
||||||
@ -892,7 +892,7 @@ else if lang eq et
|
|||||||
mov byte [time_str+10], ' '
|
mov byte [time_str+10], ' '
|
||||||
@@:
|
@@:
|
||||||
else if lang eq sp
|
else if lang eq sp
|
||||||
; esperar 5/4/3/2 segundos, 1 segundo
|
; esperar 5/4/3/2 segundo_s_, 1 segundo
|
||||||
cmp al, 1
|
cmp al, 1
|
||||||
mov cl, 's'
|
mov cl, 's'
|
||||||
ja @f
|
ja @f
|
||||||
@ -900,7 +900,7 @@ else if lang eq sp
|
|||||||
@@:
|
@@:
|
||||||
mov [time_str+10], cl
|
mov [time_str+10], cl
|
||||||
else
|
else
|
||||||
; wait 5/4/3/2 seconds, 1 second
|
; wait 5/4/3/2 second_s_, 1 second
|
||||||
cmp al, 1
|
cmp al, 1
|
||||||
mov cl, 's'
|
mov cl, 's'
|
||||||
ja @f
|
ja @f
|
||||||
|
@ -77,7 +77,7 @@ virtual at $A000
|
|||||||
mi VBE_ModeInfo
|
mi VBE_ModeInfo
|
||||||
modes_table:
|
modes_table:
|
||||||
end virtual
|
end virtual
|
||||||
cursor_pos dw 0 ;временное хранение курсора.
|
cursor_pos dw 0 ; temporary cursor storage
|
||||||
cursor_pos_old dw 0
|
cursor_pos_old dw 0
|
||||||
home_cursor dw 0 ; current shows rows a table
|
home_cursor dw 0 ; current shows rows a table
|
||||||
end_cursor dw 0 ; end of position current shows rows a table
|
end_cursor dw 0 ; end of position current shows rows a table
|
||||||
@ -696,7 +696,7 @@ draw_vmodes_table:
|
|||||||
jmp .@@_sh
|
jmp .@@_sh
|
||||||
|
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
;Clear arrea of current video page (0xb800)
|
;Clear area of current video page (0xb800)
|
||||||
clear_vmodes_table:
|
clear_vmodes_table:
|
||||||
pusha
|
pusha
|
||||||
; draw frames
|
; draw frames
|
||||||
@ -752,7 +752,7 @@ set_vmode:
|
|||||||
mov di, mi;0xa000
|
mov di, mi;0xa000
|
||||||
int 0x10
|
int 0x10
|
||||||
; LFB
|
; LFB
|
||||||
mov eax, [es:mi.PhysBasePtr];di+0x28]
|
mov eax, [es:mi.PhysBasePtr] ; di+0x28
|
||||||
mov [es:BOOT_LO.lfb], eax
|
mov [es:BOOT_LO.lfb], eax
|
||||||
; ---- vbe voodoo
|
; ---- vbe voodoo
|
||||||
BytesPerLine = 0x10
|
BytesPerLine = 0x10
|
||||||
|
@ -84,8 +84,8 @@ updatecputimes:
|
|||||||
loop .newupdate
|
loop .newupdate
|
||||||
ret
|
ret
|
||||||
|
|
||||||
;TODO: Надо бы убрать использование do_change_task из V86...
|
; TODO: We should remove the use of do_change_task from V86...
|
||||||
; и после этого перенести обработку APPDATA.counter_add/sum в do_change_task
|
; and then move the processing of APPDATA.counter_add/sum to do_change_task
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
do_change_task:
|
do_change_task:
|
||||||
|
@ -170,7 +170,7 @@ v86_get_lin_addr:
|
|||||||
; esi=handle
|
; esi=handle
|
||||||
; out: eax=V86 address, para-aligned (0x10 multiple)
|
; out: eax=V86 address, para-aligned (0x10 multiple)
|
||||||
; destroys: nothing
|
; destroys: nothing
|
||||||
; недописана!!!
|
; Unfinished !!!
|
||||||
;v86_alloc:
|
;v86_alloc:
|
||||||
; push ebx ecx edx edi
|
; push ebx ecx edx edi
|
||||||
; lea ebx, [esi+V86_machine.mutex]
|
; lea ebx, [esi+V86_machine.mutex]
|
||||||
|
@ -337,11 +337,11 @@ high_code:
|
|||||||
or eax, 1 ; bit_0 - System Call Extension (SCE)
|
or eax, 1 ; bit_0 - System Call Extension (SCE)
|
||||||
wrmsr
|
wrmsr
|
||||||
|
|
||||||
; !!!! It`s dirty hack, fix it !!!
|
; !!!! FIXME: Hack, fix it !!!
|
||||||
; Bits of EDX :
|
; Bits of EDX :
|
||||||
; Bit 31–16 During the SYSRET instruction, this field is copied into the CS register
|
; Bit 31-16 During the SYSRET instruction, this field is copied into the CS register
|
||||||
; and the contents of this field, plus 8, are copied into the SS register.
|
; and the contents of this field, plus 8, are copied into the SS register.
|
||||||
; Bit 15–0 During the SYSCALL instruction, this field is copied into the CS register
|
; Bit 15-0 During the SYSCALL instruction, this field is copied into the CS register
|
||||||
; and the contents of this field, plus 8, are copied into the SS register.
|
; and the contents of this field, plus 8, are copied into the SS register.
|
||||||
|
|
||||||
; mov edx, (os_code + 16) * 65536 + os_code
|
; mov edx, (os_code + 16) * 65536 + os_code
|
||||||
@ -2553,8 +2553,8 @@ sys_sheduler:
|
|||||||
;now counter in ecx
|
;now counter in ecx
|
||||||
;(edx:eax) esi:edi => edx:esi
|
;(edx:eax) esi:edi => edx:esi
|
||||||
; Fast Call MSR can't be destroy
|
; Fast Call MSR can't be destroy
|
||||||
; Но MSR_AMD_EFER можно изменять, т.к. в этом регистре лиш
|
; But MSR_AMD_EFER can be changed, because in this register only
|
||||||
; включаются/выключаются расширенные возможности
|
; advanced features are enabled/disabled
|
||||||
cmp edx, MSR_SYSENTER_CS
|
cmp edx, MSR_SYSENTER_CS
|
||||||
je @f
|
je @f
|
||||||
cmp edx, MSR_SYSENTER_ESP
|
cmp edx, MSR_SYSENTER_ESP
|
||||||
|
Loading…
Reference in New Issue
Block a user