forked from KolibriOS/kolibrios
leave more space for extended BIOS data
git-svn-id: svn://kolibrios.org@6016 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a64323c296
commit
dd4f527c54
@ -178,7 +178,7 @@ bd_read:
|
|||||||
ja .notread
|
ja .notread
|
||||||
sub eax, [bios_cur_sector]
|
sub eax, [bios_cur_sector]
|
||||||
shl eax, 9
|
shl eax, 9
|
||||||
add eax, (OS_BASE+0x9A000)
|
add eax, (OS_BASE+0x99000)
|
||||||
push ecx esi
|
push ecx esi
|
||||||
mov esi, eax
|
mov esi, eax
|
||||||
mov ecx, 512/4
|
mov ecx, 512/4
|
||||||
@ -214,7 +214,7 @@ bd_read:
|
|||||||
;-----------------------------------------------------------------
|
;-----------------------------------------------------------------
|
||||||
bd_write_cache_chain:
|
bd_write_cache_chain:
|
||||||
pusha
|
pusha
|
||||||
mov edi, OS_BASE + 0x9A000
|
mov edi, OS_BASE + 0x99000
|
||||||
movzx ecx, [cache_chain_size]
|
movzx ecx, [cache_chain_size]
|
||||||
push ecx
|
push ecx
|
||||||
shl ecx, 9-2
|
shl ecx, 9-2
|
||||||
@ -242,7 +242,7 @@ int13_call:
|
|||||||
; In current implementation it is protected by common mutex 'ide_status'
|
; In current implementation it is protected by common mutex 'ide_status'
|
||||||
mov word [OS_BASE + 510h], 10h ; packet length
|
mov word [OS_BASE + 510h], 10h ; packet length
|
||||||
mov word [OS_BASE + 512h], cx ; number of sectors
|
mov word [OS_BASE + 512h], cx ; number of sectors
|
||||||
mov dword [OS_BASE + 514h], 9A000000h ; buffer 9A00:0000
|
mov dword [OS_BASE + 514h], 99000000h ; buffer 9900:0000
|
||||||
mov dword [OS_BASE + 518h], eax
|
mov dword [OS_BASE + 518h], eax
|
||||||
and dword [OS_BASE + 51Ch], 0
|
and dword [OS_BASE + 51Ch], 0
|
||||||
push ebx ecx esi edi
|
push ebx ecx esi edi
|
||||||
@ -269,7 +269,7 @@ int13_call:
|
|||||||
@@:
|
@@:
|
||||||
mov word [ebx+v86_regs.esi], 510h
|
mov word [ebx+v86_regs.esi], 510h
|
||||||
mov word [ebx+v86_regs.ss], 9000h
|
mov word [ebx+v86_regs.ss], 9000h
|
||||||
mov word [ebx+v86_regs.esp], 0A000h
|
mov word [ebx+v86_regs.esp], 09000h
|
||||||
mov word [ebx+v86_regs.eip], 500h
|
mov word [ebx+v86_regs.eip], 500h
|
||||||
mov [ebx+v86_regs.eflags], 20200h
|
mov [ebx+v86_regs.eflags], 20200h
|
||||||
mov esi, [sys_v86_machine]
|
mov esi, [sys_v86_machine]
|
||||||
|
@ -89,10 +89,10 @@ v86_create:
|
|||||||
mov byte [0x504], 0x10
|
mov byte [0x504], 0x10
|
||||||
mov byte [0x505], 0xF4
|
mov byte [0x505], 0xF4
|
||||||
|
|
||||||
mov eax, 0x99000+PG_UWR
|
mov eax, 0x98000+PG_UWR
|
||||||
mov edi, page_tabs+0x99*4
|
mov edi, page_tabs+0x98*4
|
||||||
mov edx, 0x1000
|
mov edx, 0x1000
|
||||||
mov ecx, 7
|
mov ecx, 8
|
||||||
@@:
|
@@:
|
||||||
stosd
|
stosd
|
||||||
add eax, edx
|
add eax, edx
|
||||||
|
Loading…
Reference in New Issue
Block a user